Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 Twitter 应用程序基于安全的Twitter 帐户,应该能够接受或拒绝关注者请求。目前我查询新传入的友谊请求,通过twitterInstance.getIncomingFriendships(-1); 它可以正常工作。
twitterInstance.getIncomingFriendships(-1);
现在我想接受一个请求。为此,我使用twitterInstance.createFriendship(friendId);并且我的应用程序将告诉我的帐户关注此人,但此功能不会“接受”他的以下请求。
twitterInstance.createFriendship(friendId);
这种方法有什么问题?还有其他方法吗?
我知道这是不可能的。我在这里发布了一个相关问题的答案:如何使用 Twitter API 批准受保护帐户的关注者请求?