【问题标题】:Tweetsharp Send Direct MessagesTweetsharp 发送直接消息
【发布时间】:2016-12-22 07:22:35
【问题描述】:

我正在使用 Tweetsharp,我尝试使用 cod C# 发送消息

SendDirectMessageOptions msgOpt = new SendDirectMessageOptions();
msgOpt.UserId = id;
msgOpt.Text = "text";
var result = service.SendDirectMessage(msgOpt);

这个鳕鱼没用 我没有找到怎么做

【问题讨论】:

    标签: send messages tweetsharp


    【解决方案1】:

    这可能是很多事情,而不是你提供的很多细节。当你说它不起作用时,你是什么意思?

    你遇到异常了吗? 调用 SendDirectMessage 后 TwitterService 实例的 Response 属性是否有任何错误的详细信息?

    检查事项: 1. 使用用户令牌对您进行了适当的身份验证。 2.您认证的用户令牌具有发送直接消息的权限。 (https://dev.twitter.com/oauth/overview/application-permission-model-faq#i-adjusted-my-application-permissions-but-the-oauth-login-still-shows-no-permissions-for-direct-messages-should-this-change-have-been-immediate) 3. 你被认证为的用户和你的用户和发送直接消息的用户都互相关注。 (https://dev.twitter.com/rest/reference/post/direct_messages/new) 4. 没有来自同一用户的具有相同文本的直接消息(Twitter 经常删除它认为重复的状态)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-24
      • 2017-05-16
      • 2021-04-30
      • 1970-01-01
      • 2022-12-15
      相关资源
      最近更新 更多