Skip to content

Instantly share code, notes, and snippets.

@mrueegg
Created March 9, 2017 17:11
Show Gist options
  • Save mrueegg/5ff35a2bbbecf4e6375f21ac58bc8efc to your computer and use it in GitHub Desktop.
Save mrueegg/5ff35a2bbbecf4e6375f21ac58bc8efc to your computer and use it in GitHub Desktop.
Authenticate with OAuth and Python for an Atlassian application
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