开发者

Post Twitter in_reply_to_status_id from javascript api

开发者 https://www.devze.com 2023-01-25 23:37 出处:网络
The twitter js api documentation seems very clear on the reply call, yet I cannot get it to work. My tweets are getting posted, but no matter what I attempt the in_reply_to_status_id is not getting ap

The twitter js api documentation seems very clear on the reply call, yet I cannot get it to work. My tweets are getting posted, but no matter what I attempt the in_reply_to_status_id is not getting appended to the status update. Does anyone have a working example they can share?

Here is what seems to me to be the correct translation of the js api docs:

T.Status.update('message', {in_reply_to_status_id: '123456789'}); //where in_reply_to_status_id is part of the options object

Or

T.Status.reply('message', '123456789');开发者_运维知识库 //where in_reply_to_status_id is the second param passed


Just a wild guess, as the API docs you linked to aren't a good example of nice documentation, but I suspect the in_reply_to_status_id has to be a number, not a string. Can you try it with

T.Status.reply('message', 123456789);
0

精彩评论

暂无评论...
验证码 换一张
取 消