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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -