Skip to content

Instantly share code, notes, and snippets.

@chetangiridhar
Created December 10, 2015 17:07
Show Gist options
  • Save chetangiridhar/a418b776c8e0d2c0d6e1 to your computer and use it in GitHub Desktop.
Save chetangiridhar/a418b776c8e0d2c0d6e1 to your computer and use it in GitHub Desktop.
CallHub API: Get Contacts
import requests
url = "https://api.callhub.io/v1/contacts/"
headers = {"Authorization": "Token <YOUR_API_KEY>"}
r = requests.get(url, headers=headers)
print r, r.text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment