我想通过一个电话向多个人发送直接消息
我正在使用 MGTwitterEngine
并像这样调用函数
[requestDict setObject:@"direct_message" forKey:[twitterObj sendDirectMessage:@"this is test from iphone app" to:@"user_id"]];
这是发送好的
但无法将其发送给多个人,我该怎么做?我用逗号分隔的 user_ids 尝试过,但不起作用
谢谢阿米特巴坦
我想通过一个电话向多个人发送直接消息
我正在使用 MGTwitterEngine
并像这样调用函数
[requestDict setObject:@"direct_message" forKey:[twitterObj sendDirectMessage:@"this is test from iphone app" to:@"user_id"]];
这是发送好的
但无法将其发送给多个人,我该怎么做?我用逗号分隔的 user_ids 尝试过,但不起作用
谢谢阿米特巴坦
无论 MGTwitterEngine 是否支持看起来允许您向多个用户发送直接消息 (DM) 的调用,Twitter API 都不支持这样的调用。
幕后的 API 方法 ( direct_messages/new ) 只允许验证用户向一个用户发送 DM。因此,如果单个呼叫对您有用,只需遍历您的 Twitter 用户列表并将您指定呼叫的 DM 发送给他们。
此外,您不必担心发送 DM 时的速率限制。