我正在尝试通过我的 Android 应用程序发送直接消息
但我在 LogCat 收到以下错误:
java.lang.IllegalStateException:缺少身份验证凭据。有关详细信息,请参阅http://twitter4j.org/configuration.html。
我提到了http://twitter4j.org/en/code-examples.html
//instance is re-useable and thread safe.
Twitter sender = new TwitterFactory().getInstance();
DirectMessage message = sender.sendDirectMessage(recipientId, message);
System.out.println("Sent: " message.getText() + " to @" + message.getRecipientScreenName());