Created
December 10, 2015 17:07
-
-
Save chetangiridhar/a418b776c8e0d2c0d6e1 to your computer and use it in GitHub Desktop.
CallHub API: Get Contacts
This file contains 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
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