我试图使用C#获取特定用户的关注者列表 .
using (HttpClient httpClient = new HttpClient())
{
using (var httpRequest = new HttpRequestMessage(HttpMethod.Get, apiEndPoint))
{
using (HttpResponseMessage httpResponseMessage = await httpClient.SendAsync(httpRequest).ConfigureAwait(false))
{
string responseJSON = await httpResponseMessage.Content.ReadAsStringAsync();
}
}
}
我在Instagram的Sandbox中添加了几个用户,并在授权期间添加了所有范围权限 . 我能够使用以下API获得以下列表 for self
https://api.instagram.com/v1/users/self/follows?access_token= ****
但我不能为其他用户这样做 . 之前有一个API用于此 -
https://www.instagram.com/developer/endpoints/relationships/
现在看来Instagram最近已经撤销了这个功能 . 有没有其他方法可以做到这一点?
如果我能提供更多细节或说明,请告诉我 .