### Install Sendblue Python Library Source: https://github.com/sendblue-api/sendblue-python/blob/main/README.md Installs the Sendblue Python library using pip. This is the first step to using the library in your Python projects. ```bash pip install sendblue ``` -------------------------------- ### Initialize Sendblue Client (Python) Source: https://github.com/sendblue-api/sendblue-python/blob/main/README.md Initializes the Sendblue client with API keys. It's recommended to load keys from environment variables for security. ```python from sendblue import Sendblue import os SENDBLUE_API_KEY = os.environ.get('SENDBLUE_API_KEY') SENDBLUE_API_SECRET = os.environ.get('SENDBLUE_API_SECRET') sendblue = Sendblue(SENDBLUE_API_KEY, SENDBLUE_API_SECRET) ``` -------------------------------- ### Send Single Message (Python) Source: https://github.com/sendblue-api/sendblue-python/blob/main/README.md Sends a single message using the Sendblue API. Supports specifying recipient, message content, send style, media URL, and status callback. ```python response = sendblue.send_message('+19998887777', 'Hello from Sendblue!', send_style='invisible', media_url='https://source.unsplash.com/random.png', status_callback='https://example.com/callback') ``` -------------------------------- ### Lookup Phone Number (Python) Source: https://github.com/sendblue-api/sendblue-python/blob/main/README.md Looks up information about a given phone number using the Sendblue API. Requires the phone number as input. ```python response = sendblue.lookup('+19998887777') ``` -------------------------------- ### Send Group Message (Python) Source: https://github.com/sendblue-api/sendblue-python/blob/main/README.md Sends a message to multiple recipients in a group. Allows specifying a list of phone numbers, message content, and optional parameters like media URL and status callback. ```python response = sendblue.send_group_message(['+19998887777', '+19998887778'], 'Hello from Sendblue!', send_style='invisible', media_url='https://source.unsplash.com/random.png', status_callback='https://example.com/callback') ``` -------------------------------- ### Send Typing Indicator (Python) Source: https://github.com/sendblue-api/sendblue-python/blob/main/README.md Sends a typing indicator to a recipient. This can be used to show that a message is being composed. Requires the recipient's phone number. ```python response = sendblue.send_typing_indicator('+19998887777') ``` -------------------------------- ### Modify Group (Python) Source: https://github.com/sendblue-api/sendblue-python/blob/main/README.md Modifies a group by adding or removing recipients. Requires the group ID and the recipient's phone number. ```python response = sendblue.modify_group('group_id', 'add_recipient', '+19998887777') ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.