Skip to content

Instantly share code, notes, and snippets.

@chetangiridhar
Last active December 11, 2015 05:19
Show Gist options
  • Save chetangiridhar/7bcbba336e49b8575960 to your computer and use it in GitHub Desktop.
Save chetangiridhar/7bcbba336e49b8575960 to your computer and use it in GitHub Desktop.
CallHub API: Get list of Phonebooks
import requests
url = "https://api.callhub.io/v1/phonebooks/"
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