nst/STTwitter

Get Tweets by several users via Streaming API

Closed this issue · 1 comments

Hi,

I have installed the pod, and run

STTwitterAPI *twitter = [STTwitterAPI twitterAPIWithOAuthConsumerKey:@"Mykey"
consumerSecret:@"Mysecret"
username:@"myuser"
password:@"mypw"];

[twitter verifyCredentialsWithSuccessBlock:^(NSString *username) {
    NSLog(@"a");
} errorBlock:^(NSError *error) {
    NSLog(@"Error: %@", error);
}];

This gives:
Error: Error Domain=STHTTPRequest Code=401 "HTTP Status 401: Unauthorized" UserInfo=0x14fa1c00 {NSLocalizedDescription=HTTP Status 401: Unauthorized}

Can someone point me in the right direction?

Thanks!

nst commented

consumer tokens are not enough

you still need access tokens

or maybe you want to use the app only mode

see the different ways to authenticate in the readme file

or read the code in the various example files