Created
March 9, 2017 17:11
-
-
Save mrueegg/5ff35a2bbbecf4e6375f21ac58bc8efc to your computer and use it in GitHub Desktop.
Authenticate with OAuth and Python for an Atlassian application
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
headers = { | |
'Accept': 'application/json', | |
'Content-Type': 'application/json; charset=UTF-8' | |
} | |
r = oauth.get('http://localhost:6990/bamboo/rest/api/latest/project?expand=projects', headers=headers) | |
print json.loads(r.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment