【发布时间】:2010-11-19 04:36:32
【问题描述】:
twitter js api documentation 在回复电话中似乎很清楚,但我无法让它工作。我的推文正在发布,但无论我尝试什么,in_reply_to_status_id 都不会附加到状态更新中。有没有人可以分享一个可行的例子?
在我看来,这是对 js api 文档的正确翻译:
T.Status.update('message', {in_reply_to_status_id: '123456789'}); //where in_reply_to_status_id is part of the options object
或者
T.Status.reply('message', '123456789'); //where in_reply_to_status_id is the second param passed
【问题讨论】:
-
你能把你的代码展示出来,让我们看看有什么问题吗?
-
当然可以。我经历了至少 20 次迭代,但我会发布我认为 api 文档试图传达的内容。
-
T.Status.update返回什么? -
更新和回复都返回一个状态对象,但在所有情况下,inReplyToStatusID 都是空的,检查实际的 Twitter 流可以确认这一点。
-
我发现使用此代码
T.Status.reply('message', '123456789');,id 被发布为状态文本,因此似乎 id 应该首先跟在消息后面,例如T.Status.reply('123456789', 'message');,但是即使在那时,in_reply_to_status_id 字段仍然为空。
标签: javascript twitter