使用 Instagram API,我需要获取喜欢特定媒体的用户列表。
以下调用应根据文档返回所有用户的列表:https : //api.instagram.com/v1/media/555/likes?access_token=ACCESS-TOKEN
但是,我只有 120 个没有分页参数的用户。
有没有办法继续要求其余的?
如果您需要代码:
String requestLikes = "https://api.instagram.com/v1/media/" + mediaID + "/likes?access_token=" + access_token + "&count=0";
// Create a request for the URL.
request = WebRequest.Create(requestLikes);
// Get the response.
response = request.GetResponse();
//Remaining calls
AddOrUpdateAppSettings("remainingCalls", response.Headers["X-Ratelimit-Remaining"]);
// Display the status.
Console.WriteLine(((HttpWebResponse)response).StatusDescription);
// Get the stream containing content returned by the server.
dataStream = response.GetResponseStream();
// Open the stream using a StreamReader for easy access.
reader = new StreamReader(dataStream);
// Read the …Run Code Online (Sandbox Code Playgroud)