Skip to main content

Hi everyone,
We're having trouble right now with a development that relies on a data collection service.
Using Production API Credentials
Now that we've built your app with VideoAsk, you can write the app itself using your own client_id and client_secret. Your app will need to generate an access token (and possibly a refresh token as well) to integrate with the VideoAsk APIs. This requires making authorization and authentication requests through your browser-based app.
The first request, GET https://auth.videoask.com/authorize, confirms your client_id, prompts the user to grant the permissions your app requires, and returns a temporary authorization code.
The second request, POST https://api.videoask.com/oauth/token, confirms your temporary authorization code and returns your access token. (this is not a problem)
The https://api.videoask.com/authorize link in your app, including the parameters, the problem is that it needs human intervention, as far as I can see, but maybe I missed something or some possible implementation. You need to navigate over it and authenticate at that point.

Because we couldn't pass the credentials for one of the accounts and you need to open a browser to get the temporary code.
Is there any possibility to pass the data in that get to authenticate before doing the get, or to run something before authenticating?

Thanks
Regards

Hi ​@ADRIÁN OCAÑA CASTARLENAS thanks for asking your question here! Let me share this with the API experts and hopefully get you an answer 😊


Hi ​@ADRIÁN OCAÑA CASTARLENAS when you click https://api.videoask.com/authorize this should redirect you to the VideoAsk login screen to grant access, and this will then give you a temporary authorization code. After you get that temp authorization code, you can get a new token either through the OAuth2 authentication process or by using the token refresh process which is explained here.

Hopefully that’s what you’re looking for, but let me know if you have more questions!


Hello, thanks for the answer, but it's not really valid for us.
If we need human intervention to get a temporary code, it's not valid for us, we need to be able to run API queries in an automated server process.
There was a time when the token did not expire after 24 hours, so it was valid for a month. Is there no way if we can't automate the temporary code process, could it be that this token does not expire? We have many providers that have manual expiration of the Berer Token on demand, not that they expire after 24 hours.
Is there any way with this?
Thank you very much in advance


Hi ​@ADRIÁN OCAÑA CASTARLENAS once you’ve got the second code you shouldn’t need to keep getting a temporary one every 24 hours, have you tried it out yet?


Hello again, the second code (bearer token) from last week expired twice at specific times, almost 24 hours apart. Also, the expiration time given in one of the fields is 24 hours. Can you confirm that it does not expire normally in 24 hours? What is the expiration time?


Ah gotcha sorry ​@ADRIÁN OCAÑA CASTARLENAS you are right you have to continue to refresh. If you contact the VideoAsk support team (support@videoask.com) they can hopefully help with an alternative.


Hi Grace, thanks for the information, but it was our first choice of contact, we sent all the information but got no response. We are sending it again.
Thanks in advance


Hi ​@ADRIÁN OCAÑA CASTARLENAS let me follow up with the team to make sure they’re receiving your email 🙏


Reply