Using Wrike API's with Python

I am trying to get Wrike data using python and I am stuck on the authorization / token part. I do have a permanent token but not sure how to use it. 

I am able to get data using Postman but would like to know how can I achieve this using python.

The code below is what I have so far. I am able to get the '200' code back but have been stuck there for quite a while now. Any help is highly appreciated. Thanks

url_to_send = wrike_url+"oauth2/authorize?client_id="+wrike_clientId+"&response_type=code"
print(url_to_send)
code = requests.get(url_to_send)
print(code)



token_url = wrike_url+"oauth2/token/client_id="+wrike_clientId+"&client_secret="+wrike_clientSecret+"&grant_type=authorization_code"+"&code=<code>"
print(token_url)
access_token = requests.post(token_url)
print(access_token)
0
1 commento
Spot On Innovative Approach Stellar Advice
Avatar

Hi Manmohit! Looks like we might need to get more details from you and it would be most convenient to do so with the help of Support ticket. Just created it on your name.

Pavel M Community Team at Wrike Wrike Product Manager Conosci le straordinarie funzionalità di Wrike e le best practices

Pavel M Wrike Team member Conosci le straordinarie funzionalità di Wrike e le best practices

0
Azioni per commenti Permalink

Folllowing List for Post: Using Wrike API's with Python
[this list is visible for admins and agents only]

Su
Didn’t find what you were looking for? Write new post