Skip to content

Instantly share code, notes, and snippets.

@dancaps
Created January 22, 2018 22:45
Show Gist options
  • Save dancaps/d3a2e70ccae1ac6e62b9a1ad69197bf2 to your computer and use it in GitHub Desktop.
Save dancaps/d3a2e70ccae1ac6e62b9a1ad69197bf2 to your computer and use it in GitHub Desktop.
Why is this not working?
import requests
cc_api_url = 'https://api.cloudcheckr.com/api/account.json/add_account_v3'
headers = {'Content-Type': 'application/json'}
params = {'account_name': 'test_account', 'access_key': 'my_admin_api_key'}
r = requests.post(cc_api_url, headers=headers, params=params)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment