The GoTo Community is currently experiencing some technical issues affecting new posts and comments. You may need to reload the page you are on before you can post a comment. We are actively working with our service provider and apologize for the frustration.
Forum Discussion
ltctech
6 years agoNew Member
GoToWebinar API Support
Hi, It seems that the Access Token that's returned by the GoToWebinar API has increased from 28 chars to 909 chars sometime around 1AM PDT. It caused our systems to error out as it overflowed th...
- 6 years ago
Hi ltctech
For help with our API please reference this Help FAQ: https://developer.goto.com/support
We do not provide support for the API here in the community.
Thanks!
JohnSmith2020
5 years agoVisitor
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