gpt4 book ai didi

twitter - 为什么这个错误 ' - Read-only application cannot POST '

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:29:38 25 4
gpt4 key购买 nike

日志:

12-05 23:37:01.721:W/System.err(534):  401:Authentication credentials  (https://dev.twitter.com/docs/auth) were missing or incorrect. Ensure that you have set valid     conumer key/secret, access token/secret, and the system clock in in sync.
12-05 23:37:01.721: W/System.err(534): 401:Authentication credentials (https://dev.twitter.com/docs/auth) were missing or incorrect. Ensure that you have set valid conumer key/secret, access token/secret, and the system clock in in sync.
12-05 23:37:01.721: W/System.err(534): error - Read-only application cannot POST
12-05 23:37:01.721: W/System.err(534): request - /1/statuses/update.json

虽然我可以通过(getScreenName() 函数)读取屏幕名称并为我的 twitter 应用程序设置读、写权限,但它给出了上面的 logcat。我正在使用 twitter4j jar 文件。

最佳答案

  • 登录您的应用:http://dev.twitter.com/apps
  • 设置选项卡中,将应用程序类型更改为读取、写入和访问直接消息
  • Reset keys 选项卡中,按下 Reset 按钮,相应地更新应用程序中的消费者 key 和密码。

看起来重置 key 会强制对应用程序类型的更改生效。

关于twitter - 为什么这个错误 ' - Read-only application cannot POST ',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8389796/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com