python-intercom
python-intercom copied to clipboard
Python wrapper for the Intercom API.
Python: 3.6.4 Python-intercom: 3.1.0 ``` DEBUG:intercom.request:Sending GET request to: https://api.intercom.io/users DEBUG:intercom.request: headers: {'User-Agent': 'python-intercom/3.1.0', 'AcceptEncoding': 'gzip, deflate', 'Accept': 'application/json'} DEBUG:intercom.request: params: {'user_id': 123456789} DEBUG:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): api.intercom.io DEBUG:requests.packages.urllib3.connectionpool:https://api.intercom.io:443...
Delete tag is enabled in the Intercom API: https://developers.intercom.com/reference#delete-a-tag So I enabled it in the python wrapper as well.
I need to store every field into mysql,but I get a result like "". How to convert the object to dict or json?
> "Users is no longer available as a resource. In order to see information and take action on users, you should use the Contacts API." > "Contacts (for Leads only)...
We expected `company_not_found` to raise a `ResourceNotFound`, but currently it raises an `UnexpectedError` We tracked this down to: https://github.com/intercom/python-intercom/blob/master/intercom/errors.py#L68 I think `company_not_found` just needs to be mapped to `ResourceNotFound` ```...
In a previous version of this client (`2.1.1`) the Admin class had the `find` method on it (see https://github.com/jkeyes/python-intercom/blob/467bb83b1fbc3e2f88ed21e14877b412e25e6c17/intercom/admin.py) so you could find a particular Intercom admin by their id....
intercom.conversations.reply( type="admin", subject=subject, id=convo_id, message_type='inapp', email="[email protected]", body=message, admin_id=INTERCOM_ADMIN_ID ) Error: File "/home/goose/miniconda3/envs/venv/lib/python3.7/site-packages/intercom/service/conversation.py", line 32, in reply return self.__reply(reply_data) File "/home/goose/miniconda3/envs/venv/lib/python3.7/site-packages/intercom/service/conversation.py", line 62, in __reply response = self.client.post(self.resource_url(_id), reply_data) File "/home/goose/miniconda3/envs/venv/lib/python3.7/site-packages/intercom/client.py",...