ios7 - Not able to fetch the gmail address book in iPhone -


from last few days stuck not able access gmail address book in iphone app.i searched lot didn't success. here link refereed i checked link access gmail contacts

in above link given can access contacts using url https://www.google.com/m8/feeds/contacts/useremail/full able login using gdata framework didn't find fetch gmail contacts. have access token after successful login , calling method after logging in successfully.

- (void)doanauthenticatedapifetch {     nsstring *urlstr = @"https://www.google.com/m8/feeds/contacts/myemailid@gmail.com/full";     nsurl *url = [nsurl urlwithstring:urlstr];     nsmutableurlrequest *request = [nsmutableurlrequest requestwithurl:url];     [self.authtoken authorizerequest:request               completionhandler:^(nserror *error) {                   nsstring *output = nil;                   if (error) {                       output = [error description];                   } else {                       nsurlresponse *response = nil;                       nsdata *data = [nsurlconnection sendsynchronousrequest:request                                                            returningresponse:&response                                                                        error:&error];                       if (data) {                           // api fetch succeeded :here getti                           output = [[nsstring alloc] initwithdata:data                                                          encoding:nsutf8stringencoding];                       } else {                           // fetch failed                           output = [error description];                       }                   }               }];  } 

please guide me.

use url gmail account address book fetching.

http://code.google.com/p/gdata-objectivec-client/wiki/gdataobjcintroduction

and take instruction here how use google api.

http://johntwang.com/blog/2009/06/08/how-to-use-google-apis-with-iphone-sdk/

hope work you.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -