Вопрос

when using the asana Oauth to get the Token

the https://app.asana.com/-/oauth_token return

Error

No route found

Any help? Thanks!

Это было полезно?

Решение

Create you application in asana

http://i.stack.imgur.com/5AuYF.png


GET URL = 'https:// app.asana.com/-/oauth_authorize?client_id='+ setting.client_id + '&redirect_uri=' + setting.redirect_uri + '&response_type=' + setting.response_type


You get the code, POST code URL'https:// app.asana.com/-/oauth_token?grant_type=authorization_code' + '&client_id=' + setting.client_id + '&client_secret=' + setting.client_secret + '&code=' + query.code + '&redirect_uri=' + setting.redirect_uri


The access code is issued for an one hour. POST URL 'https:// app.asana.com/-/oauth_token?grant_type=refresh_token' + '&client_id=' + setting.client_id + '&client_secret=' + setting.client_secret + '&refresh_token=' + setting.refresh_token ----- for refresh access co

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top