Skip to content

Instantly share code, notes, and snippets.

@zopyx
Created August 26, 2016 13:46
Show Gist options
  • Save zopyx/1a4f858ae89dbcb86bddb0bd0f8212fe to your computer and use it in GitHub Desktop.
Save zopyx/1a4f858ae89dbcb86bddb0bd0f8212fe to your computer and use it in GitHub Desktop.
headers = {
'x-api-key': API_KEY,
'content-type': 'application/json',
'authorization': token
}
data = {"user": {
"email": "[email protected]",
"firstname": "Steven",
"lastname": "Miller",
"userId": "764ea18872a34337",
"company": "yourcompany"
},
"title": "my first SMASHDOCs document",
"description": "",
"groupId": "85c2602653b7c",
"userRole": "approver",
"sectionHistory": True
}
result = requests.post('https://partner-api.smashdocs.net/partner/authenticate', data=json.dumps(data), headers=headers)
print result
print result.json()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment