post https://api.callhub.io/v1/contacts/
Log in to see full request history
Create a new contact
Responses
Create a new contact
xxxxxxxxxx
18# You'll need to install requests
import requests
# api_key can be found at https://callhub.io/user_detail_change/?action=tabs-1
headers = {'Authorization': 'Token %s' % api_key}
data = {"contact": "15019028176",
"mobile": "15019022176",
"last_name": "Kenny",
"first_name": "Chris",
"country_code": "US",
"email": "ckenny@gmeil.com",
"address": "34786 Longboat Court",
"city": "Portland",
"state": "OR",
"company_name": "IBM Inc",
"company_website": "http://www.ibm.com/ckenny/",
"job_title": "Project Manager"}
r = requests.post('https://api.callhub.io/v1/contacts/', data=data, headers=headers)
print "Contact created in JSON", r.json()
Try It!
to start a request and see the response here! Or choose an example: