Skip to content

Instantly share code, notes, and snippets.

@ratchetwrench
Created August 15, 2017 20:40
Show Gist options
  • Save ratchetwrench/1d4cab61f7a25564ba9cbfff1ff9aa84 to your computer and use it in GitHub Desktop.
Save ratchetwrench/1d4cab61f7a25564ba9cbfff1ff9aa84 to your computer and use it in GitHub Desktop.
Create a Python Request with API token authorization.
import requests
response = requests.get('https://website.com/id', headers={'Authorization': 'access_token myToken'})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment