Skip to content

Instantly share code, notes, and snippets.

@nmcspadden
Created October 19, 2016 03:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmcspadden/a76e3ff7eede3b735876f5277587ceec to your computer and use it in GitHub Desktop.
Save nmcspadden/a76e3ff7eede3b735876f5277587ceec to your computer and use it in GitHub Desktop.
adobe_tools - Headers
def headers(config_data, access_token):
"""Return the headers needed."""
headers = {
"Content-type": "application/json",
"Accept": "application/json",
"x-api-key": config_data['api_key'],
"Authorization": "Bearer " + access_token
}
return headers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment