Can I pass my access token to Intercom's API using Python?
Best answer by Eric Fitz
View originalCan I pass my access token to Intercom's API using Python?
Best answer by Eric Fitz
View originalPython is not an officially supported SDK yet. However, the below should work with the requests package.
import requests
url = 'https://api.intercom.io/users?user_id=abcd#39;
headers = {'Authorization' : 'Bearer <Your access token>'}
r = requests.get(url, headers=headers)
Alternatively, you can install this third-party wrapper and use the below. Just bear in mind that it’s not officially supported.
from intercom.client import Client
intercom = Client(personal_access_token='my_personal_access_token')
Already have an account? Login
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.