如何获取JSON响应Twitch

时间:2019-09-12 08:17:09

标签: twitch twitch-api

我尝试从https://api.twitch.tv/kraken/users?login=CHANNEL NAME BUT

获取JSON响应
{"error":"Bad Request","status":400,"message":"No client id specified"}

我希望得到:

{
  "_id": "44322889",
  "bio": "Just a gamer playing games and chatting. :)",
  "created_at": "2013-06-03T19:12:02.580593Z",
  "display_name": "dallas",
  "logo": "https://static-cdn.jtvnw.net/jtv_user_pictures/dallas-profile_image-1a2c906ee2c35f12-300x300.png",
  "name": "dallas",
  "type": "staff",
  "updated_at": "2017-02-09T16:32:06.784398Z"
}

1 个答案:

答案 0 :(得分:0)

首先,请在下次发布前修复格式。

第二,看看这个: https://dev.twitch.tv/docs/v5/#getting-a-client-id