cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor

Fail to get new refresh token for API

Hi, we are currently using the GoToWebinar API for getting back webinar information and we call the GoToWebinar API with a new access token every time using the refresh token.

And at the same time, we have a scheduled job running every day calling the following token API and store the refresh token in AWS Parameter Store.

Ref: https://developer.goto.com/guides/HowTos/05_HOW_refreshToken/ 

curl -X POST "https://api.getgo.com/oauth/v2/token" \
  -H "Authorization: Basic ${AuthCode}" \
  -H "Accept:application/json" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=refresh_token&refresh_token=${RefreshToken}"

 

Recently, we found that the scheduled job is failed due to the following error. 

{"error":"invalid_request","error_description":"Required parameter(s) missing or wrong."}

We observed the issue is caused by the outdated refresh token which should be updated in the scheduled job. Is the refresh token only being updated right before outdated? or we need to run the scheduled job more frequently? 

 

Thanks!

1 REPLY 1
Highlighted
LogMeIn Contributor

Re: Fail to get new refresh token for API

Hello @micho

All GoTo API inquiries need to use the support template located here:  https://developer.goto.com/support