Hi All,
Im trying to implement a c++ app in order to create multiple tasks when we start a project. I’ve faced a lot of problems with te comunication between my app and Asana’s API (Most of all because of my lack of knowledge). But the thing is going on.
My app succesfully conects with the API. I have a server who asks user for authentication and stores his code in the database. After that, I have implemented an User Authorization Endpoint who is able to change that code for an Asana token in order to make requests. This token, acording to the documentation, is valid for 1 hour.
My problem here is that im unable to make a functional POST to the Token Exchange Endpoint. Asana always responds the same thing:
POST’s Answer:
“{\n "error": "invalid_grant",\n "error_uri": "Build an app with Asana”,\n "error_description": "The code
provided was invalid."\n}"
My code is the same as User Authorization Endpoint, wichs works pretty well (I only get error if I use the code 2 times in the same request).
Other questions:
-The code that Asana gives to the user is only valid for 15 minutes? If I dont ask for a token in that time, Do I (My users) have to ask for authotization again?
Regards, an thank you so much.
Dani.