duanduoding2238 2015-12-07 17:13
浏览 88

Twitter JS API,更新状态

I'm at a total loss here. I believe I'm right in thinking there is no longer any JS API for twitter which just sucks hugely.

However I realise looking at this I could just use ajax and react to the responses from this:

https://dev.twitter.com/rest/reference/post/statuses/update

OAuth Signature Generator

Example Request POST https://api.twitter.com/1.1/statuses/update.json?status=Maybe%20he%27ll%20finally%20find%20his%20keys.%20%23peterfalk

However when I post to that url I get the following:

{"errors":[{"code":215,"message":"Bad Authentication data."}]}
  • 写回答

1条回答 默认 最新

  • doumie7914 2015-12-07 20:31
    关注

    Bad Authentication data -> this is very self explanatory: Your Authentication is Bad; in other word, you are not authorized to use that API method.

    Since you use POST method, make sure you set your APP access level to Read & Write.

    Sign in to apps.twitter.com, and in the Applications Management page for your app, click the Permissions tab. There you can change your access level.

    For further reading, please see this answer.

    评论

报告相同问题?

悬赏问题

  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序