Skip to content

Instantly share code, notes, and snippets.

@reubeningber
Last active July 23, 2019 14:30
Show Gist options
  • Select an option

  • Save reubeningber/8cb5fbd2b3de48ae61efcd4f57eb1f11 to your computer and use it in GitHub Desktop.

Select an option

Save reubeningber/8cb5fbd2b3de48ae61efcd4f57eb1f11 to your computer and use it in GitHub Desktop.
data = {
"customer_name": "businessinsider",
"user_name": "<REDACTED>",
"password": "<REDACTED>"
}
headers = {
'Content-type': 'application/json',
'Accept': 'text/plain'
}
r = requests.post('https://api.dynect.net/REST/Session/', data=json.dumps(data), headers=headers)
print(r.content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment