1

I try to use MGTwitterEngine for twitter Iphone integration, this is supporting both xAuth and oAuth as per its documentation and firstly I try it using xAuth as which function I am calling named getXAuthAccessTokenForUsername

But my application is in developing stage .. and twitter not approving it .. they will approve it after release...

I am not able to use oAuth using MGTwitterEngine

Can anybody help me...

Even I am not able to use oAuth version from source http://mobile.tutsplus.com/tutorials/iphone/twitter-api-iphone/comment-page-1/

I can update my status successfully using it...But not able do any thing else

I try

[_engine getUserInformationForEmail:@"battan20@gmail.com"];
//_engine is the twitterengine object

then getting error

Request 9EF8DE73-6E04-46F1-9D90-484F90FCA44F failed with error: Error Domain=HTTP Code=404 "The operation couldn’t be completed. (HTTP error 404.)"

Request 016DB024-1BFB-4E9B-8734-3FFCCB93D6E4 failed with error: Error Domain=HTTP Code=403 "The operation couldn’t be completed. (HTTP error 403.)"

Please help me

Amit Battan

Amit Battan
  • 2,968
  • 2
  • 32
  • 68

2 Answers2

0

When today I call

NSString *abc = [twitterObj getUserInformationFor:@"amit_battan"];
NSLog(@"abc...%@",abc);

Then I got the log

abc...F4BBA3C6-5783-46FF-A383-1B9C2319AB43
Request F4BBA3C6-5783-46FF-A383-1B9C2319AB43 succeeded

means it works ok...

But How I get the output.. in which function/variable

Amit Battan
  • 2,968
  • 2
  • 32
  • 68
  • working fine all other API but not for '[twitterObj getUserInformationForEmail:@"battan20@gmail.com"];' Giving Error 404 in this case.. – Amit Battan Mar 04 '11 at 13:37
0
-(void)userInfoReceived:(NSArray *)userInfo forRequest:(NSString *)connectionIdentifier {
    NSMutableArray *mFollowerArray  =   nil;
    mFollowerArray  =   [userInfo retain];
    NSLog(@"count = %d",[mFollowerArray count]);
    for (int i=0; i<[mFollowerArray count]; i++) {
        NSLog(@" %@",[mFollowerArray objectAtIndex:i]);
    }
}

above code might help

Mohith Km
  • 2,079
  • 1
  • 16
  • 16