/intercomic

Tiny Intercom REST API

Primary LanguagePythonMIT LicenseMIT

intercomic

Tiny Client for the Intercom API (https://api.intercom.io/)

Installation

pip install intercomic

Basic Usage

Configure your client

from intercomic import IntercomApp

intercom = IntercomApp(access_token='your-access-token')

Examples

Users

# Create a user
import json
user = intercom.users.create(json.dumps({'email': 'john@example.com', 'name': 'John'}))
# Find user by user_id
user = intercom.users.get(filters={'user_id': 1})
# Find user by email
user = intercom.users.get(filters={'email': email})
# Delete a user
user = intercom.users.delete(filters={'user_id': 1})