Asana Connect (OAuth) can not get token -


when using asana oauth token

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

error  no route found 

any help? thanks!

create 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 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 issued 1 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 ----- refresh access co


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -