Skip to main content

Posts

Showing posts with the label mgtwitterengine

Using RestAPI calls with MGTwitterEngine+Oauth

I am using MGTwitterEngine+Oauth for twitter integration in iPhone. I need to post status and status with media on twitter.When searching I came to know that it can be possible with REST API. https://dev.twitter.com/docs/api But I did not find any links which can help how to use this api after I get authenticated with twitter. So what I did I tried using Oauth but it requires manually entering the pin which is not accepted in my case. So what I did it. I fetch information from mgtwitter engine methods:- - (void) OAuthTwitterController: (SA_OAuthTwitterController *) controller authenticatedWithUsername: (NSString *) username { NSLog(@"Inside authenticatedWithUsername"); NSLog(@"%@",[[_engine tokenOFAuth] key]); NSLog(@"%@",[[_engine tokenOFAuth] pin]); NSLog(@"%@",[[_engine tokenOFAuth] secret]); [_engine getUserInformationFor:username]; } tokenOFAuth is the instance of OAToken. - (void)userInfoReceived:(NSArray *)userInfo