FreeCodeCampChina / freecodecamp.cn

FCC China open source codebase and curriculum. Learn to code and help nonprofits.
https://fcc.asia/
Other
36.83k stars 1.37k forks source link

从2016年8月份开始twichtv的API调用需要使用Client-Id作为身份验证 #77

Closed YQ-Jiang closed 7 years ago

YQ-Jiang commented 7 years ago

Challenge Use the Twitchtv JSON API has an issue. User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible. 从2016年8月份开始twichtv的API调用需要使用Client-Id作为身份验证,如果没有将会出现如下返回: {"error":"Bad Request","status":400,"message":"No client id specified"} 关于Client-Id的申请:https://blog.twitch.tv/client-id-required-for-kraken-api-calls-afbb8e95f843#.bc64i4ukn 注:示例中所有的API调用都挂了,错误均如上所示。

zhu-xiaoming commented 7 years ago

@YQ-Jiang 那个 client-id 注册的时候,要填写 Redirect URI ,我应该填什么?codepen的链接?

hanjinjun commented 7 years ago

@little-tomorrow 我用的是新建的pen的链接,已经可以成功请求,如果你懒得再注册,可以使用我的 'Client-ID': 'q443o8gke0lrzh0bhvlzhv4wd1kw6v' 应该是没有问题的。

S1ngS1ng commented 7 years ago

@hanjinjun 请添加到 wiki。感谢