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

Re: Elemental questions about the OAUTH API

I would like to post an answer I recieved a response from the response

 

So basic flow here would be:

  • Obtain Authorization Code using browser
  • Feed/redirect the access code to your application somehow
  • Exchange code for an Access Token and Refresh Token
  • Store Refresh Token
  • Use refresh token once a day to get a new Access Token payload
  • Always replace the stored Refresh token in the payload, even though they will be the same most of the time

If this flow is done properly, you should not need to login using the browser again, but it is good to always have the ability to feed your app a new code just in case

 

---

 

Maybe this help someone.

Also the reason for the

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

Error was that the redirect_url was not the same I had in the access token request. Mybe that helps someone

https://api.getgo.com/oauth/v2/authorize?client_id=CLIENT_ID_HERE&redirect_uri=https://mywebsite.io

// use the same redirect_uri here
curl --location --request POST 'https://api.getgo.com/oauth/v2/token' \
--header 'Authorization: Basic <BASE64 client_id : client_secret>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=authorization_code' \
--data-urlencode 'code={CODE}' \
--data-urlencode 'redirect_uri=https://mywebsite.io'
DVL
Visitor

"Your request could not be processed because the request body is not parsable" API Error

Hello,

 

I am trying to register users via the API endpoint https://api.getgo.com/G2W/rest/v2/organizers/{organizerKey}/webinars/{webinarKey}/registrants with a test body of

 

{"firstName": "Testname","lastName": "Lastname'","email": "string@test.de"}

 

I always get the error "Your request could not be processed because the request body is not parsable".

 

I sticked to the instructions here https://developer.goto.com/GoToWebinarV2/#operation/createRegistrant, tried with "Accept: application/json" and "Accept: application/vnd.citrix.g2wapi-v1.1+json" in the header.

 

Does anybody know this error and what could case it?

JohnSmith2020
Visitor

Get all webinars for an account. It runs in Postman, but not in MSXML2.ServerXMLHTTP.6.0 REST call

No problem in Postman calling the API REST:

https://api.getgo.com/G2W/rest/v2/organizers/12341234123412341234/webinars?

with Headers: Accept, Authorization, Cache-Control, Content-Type and Host and with Parameters: fromTime and toTime.   The results are OK.

But when I try this in code, CLASSIC ASP calling MSXML2.ServerXMLHTTP.6.0 REST, the result is:

 

{"errorId":"f186c7ac-a8be-4fa3-a72a-63b68f027dce","requestId":null,"timeStamp":1614797938102,"reason":"invalid.data","errorCode":"invalid.data","description":"Required DateTime parameter 'fromTime' is not present","incident":"1048515592356393472","details":null}

 

This is the code:

 

url = "https://api.getgo.com/G2W/rest/v2/accounts/23232323/webinars?"

Dim oXMLHttp
Set oXMLHttp=Server.Createobject("MSXML2.ServerXMLHTTP.6.0")
oXMLHttp.open "GET", url, false
' HEADERS
oXMLHttp.setRequestHeader "Accept", "application/json"
oXMLHttp.setRequestHeader "Authorization", authorization_bearer_code
oXMLHTTP.setRequestHeader "Cache-Control", "no-cache"
oXMLHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
'oXMLHTTP.setRequestHeader "Content-Type", "application/json;charset=UTF-8"
oXMLHTTP.setRequestHeader "Host", "api.getgo.com"


' PARAMETERS: WEBINARS FROM - TO
FromTime =Server.UrlEncode("2021-02-27T00:00:00Z")
ToTime =Server.UrlEncode("2021-03-03T00:00:00Z")
strData = "fromTime=" & FromTime & "&toTime=" & ToTime & ""

 

oXMLHttp.send strData
response.write oXMLHttp.responseText
Set oXMLHttp = Nothing
Response.status = 200

 

 

Can u help me, please?

The authorization_bearer_code is obtained in the same way, and the call is correct.

 

 

Thanks in advance

 

 

 

aditya-fonteva
New Contributor

Admin is not able to update the another user's webinar

Hi folks,

 

I'm using this API to create a webinar and I made someone else a host.

https://developer.goto.com/GoToWebinarV2/#operation/createWebinar

 

But when I hit the following API to update the meeting, I'm not able to do that even if I'm an admin.

https://developer.goto.com/GoToWebinarV2/#operation/updateWebinar

 

I can't even hit other APIs  to add co-organizers like https://developer.goto.com/GoToWebinarV2/#operation/createCoorganizers

It says:

"Authentication succeeded, but access to the requested resource is denied."

 

Is there any special permission for admin so that I can do this stuff with my account. The problem is only when I make someone else a host and trying to update the webinar.

 

Thanks,

Aditya

AshC
Retired GoTo Contributor

Re: Admin is not able to update the another user's webinar

Hi Aditya ,

I'm not certain you can update webinar events as an 'account administrator', though you may be able to get an answer from the API team here: https://developer.goto.com/support


Ash is a member of the LastPass Community Care Team.

Was your question answered? Please mark it as an Accepted Solution.
Was a post helpful or informative? Give it a Kudo!
Fran_Simon
Valued Contributor

Re: "Your request could not be processed because the request body is not parsable" API Err

Zapier.com.

They offer a lot of plug and play integrations.

Fran Simon
Engagement Strategies
http://EngageStrat.com
rmohan
New Member

API to change the status of user from WAITING to APPROVED

Can you please help me with below scenario?

 

1. I want to create webinar by enabling ManualApproval during registration.

2. I want to fetch all the registrants of the webinar and verify if they have entered a passcode during registration. If so, I need to approve the registrant. 

 

As far I understood, when user registers he will be in WAITING state. 

Is there any API to change the status of registrant from WAITING to APPROVED?

 

Thanks in advance

 

 

 

 

AshC
Retired GoTo Contributor

Re: API to change the status of user from WAITING to APPROVED

@rmohan I'm not aware of any API calls like that, but you will want to reference the developer site for all of these inquiries:  https://developer.goto.com/GoToWebinarV2/#tag/Registrants


Ash is a member of the LastPass Community Care Team.

Was your question answered? Please mark it as an Accepted Solution.
Was a post helpful or informative? Give it a Kudo!
pablo3432
New Contributor

Re: Gotowebinar webhook creation 400 bad request Invalid callbackUrl

Did you ever find a solution to this? What are you using for your webhooks?

saludangelito
Visitor

Concerns with GoTo Webinar get webinar endpoints

Is it intended that the organizerKey is not needed? I tried using `/rest/v2/organizers/{organizerKey}/webinars` endpoint and its seems the result is based off the fromTime, toTime and the token. I can pretty much put any value that is not blank to the organizerKey and it still works.