How to make a POST call to bamboo server using OAuth -


i had application links in bamboo.also have access token bamboo. stuck no go.

my params:

headers = { "accept" : "application/x-www-form-urlencoded", "authorization": "bearer "+access_token['oauth_token'], "data" : '{"name":"kalav"}' } data:

data = '{"name":"kalav"}'

my post call:

response=requests.request("post",callurl+"?access_token="+access_token['oauth_token'],data=data,headers=headers) print ("got status: %s" %(response.status_code)); print ("got text: %s" %(response.text));

am doing correct ..or there way of doing it.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -