首页 > 解决方案 > 获取 GoToWebinar 注册人

问题描述

我正在尝试从 GoToWebinarApi(api 链接)获取注册人信息。首先,我请求获取所有注册人并获得以下响应:

Response body

[
  {
    "firstName": "Test",
    "lastName": "t",
    "registrationDate": "2020-06-04T08:46:44Z",
    "timeZone": "Europe/Helsinki",
    "joinUrl": "https://global.gotowebinar.com/join/7649495216334202379/502991121",
    "registrantKey": 6700838782913279000,
    "email": "tes@gmail.com",
    "status": "APPROVED"
  }
]

之后,我尝试使用此注册人密钥在另一个查询中获取注册人信息,但始终获得以下响应:

https://api.getgo.com/G2W/rest/v2/organizers/{{organizer_key}}/webinars/{{webinar_key}}/registrants/{{registrant_key}}
{
    "errorCode": "NotFound",
    "description": "Registrant with specified key does not exist",
    "incident": "3599905930306030349"
}

不知道怎么回事,可能是bug?它有很多这样的东西。

标签: apilogmein

解决方案


您是否尝试过下载 Postman 并导入他们的收藏?您可以填写这些字段,看看是否有任何问题。消除您在代码中犯错误的可能性。

https://documenter.getpostman.com/view/7571707/SVzw4fq2?version=latest#97d099de-e2b2-413c-96aa-d441d2db80c9

编辑:问题/问题:

我发现了这个问题。基本上这些数字对于 Javascript 来说太大了。请参阅:JSON 响应 Long is Rounded or Corrupted and Large numbers are wrongly rounded in JavaScript


推荐阅读