Created
August 26, 2016 13:46
-
-
Save zopyx/1a4f858ae89dbcb86bddb0bd0f8212fe to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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