iPhone 中的操作停止工作!

发布于 2024-10-14 21:37:17 字数 947 浏览 3 评论 0原文

我已经使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你与昨日 2024-10-21 21:37:18

已解决

我只需要在 if (params) {fullPath = [self _queryStringWithBase:fullPath parameters:params prefixed:YES]; 之前添加 if(requestType == MGTwitterUserTimelineRequest || requestType == MGTwitterFollowedTimelineRequest) 即可}
这样它看起来像这样:

if(requestType == MGTwitterUserTimelineRequest || requestType == MGTwitterFollowedTimelineRequest) {
    if (params) {
        fullPath = [self _queryStringWithBase:fullPath parameters:params prefixed:YES];
    }
}

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];
    }
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文