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
Post a Comment