Created
April 3, 2017 12:46
-
-
Save looneym/f2e76d674f9d1fd9aa3b70cfb334d94e to your computer and use it in GitHub Desktop.
How to create an admin initiated conversation in Intercom using the Python SDK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from intercom.client import Client | |
intercom = Client(personal_access_token='my_personal_access_token') | |
intercom.messages.create(**{ | |
"message_type": "inapp", | |
"body": "What's up :)", | |
"from": { | |
"type": "admin", | |
"id": "1234" | |
}, | |
"to": { | |
"type": "user", | |
"id": "5678" | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment