c# - 我可以在字符串数组中获取某个用户的关注者吗
问题描述
我想获得某个用户的关注者,string[]
这样我就可以将他们添加到我的机器人中。
private static TwitterService tservice;
...
tservice.ListFollowerIdsOf(new ListFollowerIdsOfOptions());
这种方法听起来可以为您提供我尝试过的特定 Twitter 关注者的 ID 列表,但效果不佳。
解决方案
试试下面的,看来你需要在ListFollowerIdsOfOptions()
对象中指定一个followerId
{屏幕名称 = _hero}
var service = GetAuthenticatedService();
var followers = service.ListFollowerIdsOf(new ListFollowerIdsOfOptions(){ScreenName = _hero});
推荐阅读
- polygon - 多边形未显示在 ThingsBoard 旅行动画小部件上
- node.js - DIScord.js 将附件放入嵌入的缩略图中不显示
- amazon-web-services - 如何确定 spark elasticsearch 写入的任务数
- android - Android Studio 对 strings.xml 文件进行排序以匹配
- excel - 有没有办法引用excel中数据透视表中显示的日期范围
- c# - CheckPasswordAsync 在 .netcore 中总是返回 false
- c - 如何向C中的位数组添加随机噪声?
- matlab - 创建一个采用负值的连续函数 MATLAB
- python - Google Analytics Python API“收到无效的 JSON 有效负载。‘report_requests[0]’处的未知名称‘段’:找不到字段。”
- core-data - 从在线 Json 再次获取时更新 CoreData