Python
Last updated
Was this helpful?
Last updated
Was this helpful?
Add live messaging to your Python applications with the Core Python SDK. Take advantage of the Robin API and deploy messaging solutions in very little time.
The following python packages are required to use the SDK:
Follow the step-by-step instructions below to send your first message using the Python SDK
To create a Robin
instance, pass the apiKey
as the first argument, and the optional tls
argument as the second in the Robin(apiKey, tls)
constructor.
Initializing the Chat SDK at the top of your Python file is recommended.
Before sending a message, you need to create a Conversation
Now, you can send a message to a conversation with the robin.send_conversation_message()
method.
API Key - Learn about how to get your API Keys in
You can connect to the Robin server using the connect(user_token)
method from the Robin
instance. If you do not have a (user_token), you would have to create one. (specific link to create user token) is a good place to start.