Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

send update & sendDirectMessage error 401 #90

Open
luffydm opened this issue Sep 13, 2011 · 3 comments
Open

send update & sendDirectMessage error 401 #90

luffydm opened this issue Sep 13, 2011 · 3 comments

Comments

@luffydm
Copy link

luffydm commented Sep 13, 2011

hello everyone,

I have an issue when I use this two methods, I get an 401 error
Other method have no problem.

I directly store the token that i get from a webservice. The token app is in Read, write, and direct messages

  • (void) storeCachedTwitterOAuthData: (NSString *) data forUsername: (NSString *) username {
    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
    [defaults setObject: data forKey: @"authData"];
    [defaults synchronize];
    }
  • (NSString *) cachedTwitterOAuthDataForUsername: (NSString *) username {
    return [[NSUserDefaults standardUserDefaults] objectForKey: @"authData"];
    }
@wfettich
Copy link

I have the same problem. Any luck fixing it?

@luffydm
Copy link
Author

luffydm commented Sep 28, 2011

No for the moment I use my own webservices in php, which can make the call with the same token

@genesluder
Copy link

For anyone who has this problem, the twitter api path has changed.

It's building a path like: https://twitter.com/statuses/update.xml

What you want is https://api.twitter.com/1/statuses/update.xml

In MGTwitterEngine.m you have to set:

line 40 - #define TWITTER_DOMAIN @"api.twitter.com"

line 1023 - NSString *path = [NSString stringWithFormat:@"1/statuses/update.%@", API_FORMAT];

Hopefully this project will live long enough to support those of us that have to support users on iOS4 for the time being

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants