【发布时间】:2015-05-30 16:22:07
【问题描述】:
有两个 json 调用,调用 #2 正在工作。我对第一个(多个流)一无所知。
(我知道你们中的一些人会说:“去那里阅读文档”,但这对我没有多大帮助。https://github.com/justintv/Twitch-API/blob/master/v2_resources/streams.md)
调用 #1:
$.getJSON("h ttps://api.twitch.tv/kraken/streams?channel=viagamehs,starladder1.json?callback=", function(response){
response = JSON.stringify(response);
OBjonline = jQuery.parseJSON(response);
alert(response);
});
调用 #2:
$.getJSON("h ttps://api.twitch.tv/kraken/streams/viagamehs_ru.json?callback=?", function(response){
response = JSON.stringify(response);
OBjonline = jQuery.parseJSON(response);
alert(response);
});
【问题讨论】: