-
-
Save nmcspadden/a76e3ff7eede3b735876f5277587ceec to your computer and use it in GitHub Desktop.
adobe_tools - Headers
This file contains 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
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