iPhone 中的操作停止工作!
我已经使用 mgtwitterengine 在我的 iPhone 上设置了一个 Twitter 客户端。我已经成功设置了它,这样我就可以发推文并接收状态更新。
使用标准设置,您只能接收 10 到 20 个更新。为了能够接收更多更新,您必须输入 [_engine getFollowedTimelineSinceID:0 runningAtPage:0 count:50];
但这不允许您获得超过原始数量的信息,直到您
if (params) {
fullPath = [self _queryStringWithBase:fullPath parameters:params prefixed:YES];
}
激活SA_OAuthTwitterEngine.m。
我的问题是,当我这样做时,我无法再从我的应用程序发布新状态。我可以在信息流中拥有最多 200 个状态,但没有发布功能。 这是错误:Error Domain=HTTP Code=401“操作无法完成。(HTTP 错误 401。)”
任何帮助将不胜感激。
非常感谢提前
解决
我只需要在 if (params) {fullPath = [self _queryStringWithBase:fullPath parameters:params 前缀:是];}
这样它看起来像这样:
if(requestType == MGTwitterUserTimelineRequest || requestType == MGTwitterFollowedTimelineRequest) {
if (params) {
fullPath = [self _queryStringWithBase:fullPath parameters:params prefixed:YES];
}
}
i have set up a twitter client on my iphone using mgtwitterengine. i've managed to set it up so i can tweet and recieve status updates.
using the standard set up you can only receive between 10&20 updates. to be able to receive more updates then that you have to put[_engine getFollowedTimelineSinceID:0 startingAtPage:0 count:50];
but this does not allow you to get more than the original amount untill you activate
if (params) {
fullPath = [self _queryStringWithBase:fullPath parameters:params prefixed:YES];
}
in SA_OAuthTwitterEngine.m.
my problem is when i do this i can no longer post a new status from my app. i can have upto 200 statuses in the stream but no posting capabilities.
this is the error:Error Domain=HTTP Code=401 "The operation couldn’t be completed. (HTTP error 401.)"
any help would be appreciated.
many thanks in advance
SOLVED
i just need to add if(requestType == MGTwitterUserTimelineRequest || requestType == MGTwitterFollowedTimelineRequest)
before if (params) {fullPath = [self _queryStringWithBase:fullPath parameters:params prefixed:YES];}
so that it looks like this:
if(requestType == MGTwitterUserTimelineRequest || requestType == MGTwitterFollowedTimelineRequest) {
if (params) {
fullPath = [self _queryStringWithBase:fullPath parameters:params prefixed:YES];
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
已解决
我只需要在
if (params) {fullPath = [self _queryStringWithBase:fullPath parameters:params prefixed:YES]; 之前添加
if(requestType == MGTwitterUserTimelineRequest || requestType == MGTwitterFollowedTimelineRequest)
即可}这样它看起来像这样:
SOLVED
i just need to add
if(requestType == MGTwitterUserTimelineRequest || requestType == MGTwitterFollowedTimelineRequest)
beforeif (params) {fullPath = [self _queryStringWithBase:fullPath parameters:params prefixed:YES];}
so that it looks like this: