Hi,
I just started to work with the gotoWebinar API and just ran into some issues/problems.
Beside the various errors I got trying to authenticate via an access token (already made a support request) I asked myself if I just missunderstand the functionality of the API or I just need some advice.
What I plan is that I simply subscribe users to a webinar via a PHP script on my website.
So I started by creating the developer account, created an client and then starten using this guide and postman to get an access token.
The "Obtaining an authorization code" works fine but i got stuck on the "Obtain an access token" part and after fiddeling around for some hours I just asked myself "Is this even possible what I try"?
Because to make an API call I need a Access token .. to get an access token I need a authorization code. But the authorization code can only be obtained by call the URL with the clientId and the recirectUri and then log in and accept the required stuff.
But I want to make this calls via PHP,... first I thought "ok I just create the authorization code once and then use it in my php code" but in the documentation is written
You can now send the authorization code in exchange for an access token. Each authoization code can only be exchanged once. Any subsequent attempts will result in an error.
So I can't use it over and over again to get a new access token to make API calls. So how did this work?
my current state is that I make some calls via postman which leads to errors like
{
"error": "invalid_request",
"error_description": "Required parameter(s) missing or wrong."
}
Which are not really clear what is wrong or what is missing.
I mean I added everthing the documentation requested.
grant_type : authorization_code
code: the auth code which is generated by the first link
Basic Auth with username (client_id) and password (client_secret)
Maybe someone can bring some light into my dark 🙂