首页 > 解决方案 > 我可以在字符串数组中获取某个用户的关注者吗

问题描述

我想获得某个用户的关注者,string[]这样我就可以将他们添加到我的机器人中。

private static TwitterService tservice;
...

tservice.ListFollowerIdsOf(new ListFollowerIdsOfOptions());

这种方法听起来可以为您提供我尝试过的特定 Twitter 关注者的 ID 列表,但效果不佳。

标签: c#tweetsharp

解决方案


试试下面的,看来你需要在ListFollowerIdsOfOptions()对象中指定一个followerId

{屏幕名称 = _hero}

var service = GetAuthenticatedService();
var followers = service.ListFollowerIdsOf(new ListFollowerIdsOfOptions(){ScreenName = _hero});

推荐阅读