iphone - Inserting Images in Specific Album on Picasa in iOS -


i working ios application in upload images on picasa web albums ios application.when create album firstly check whether album same name exist or not fetch albums name , album id below code.

for (gdataentryphotoalbum *albumentry in feed)         {             nsstring *title = [[albumentry title] stringvalue];             nsstring *title1 = [albumentry gphotoid];             nslog(@"file title:  %@ | id: %@",title,title1);         } 

i album name , albumid . check current album name given user.

  if ([title isequal:albumname]){        //do not create new album        // return album id      }    else{   //create new album    } 

everything working fine ,but problem how can send albumid uploading method below mentioned:

  - (void)_startupload:(uiimage *)image:(nsstring *)filepath{          nslog(@"album feed %@",albfeed);        // user/11106615845/albumid/6029121 gphotoid:60291215413       //gdatafeedphotoalbum *albumfeedofphotos = [self photofeed];          //https://photos.googleapis.com/data/upload/resumable/media/create-session/feed/api/user/114789383162963173862/albumid/6025392474120084449        //https://photos.googleapis.com/data/entry/user/1082642086705/albumid/60254095886065         nsurl *uploadurl1 = [[[albfeed uploadlink] url] retain];          nsstring *photopath = [[nsbundle mainbundle] pathforresource:@"red_bull" oftype:@"jpg"];         nsstring *photoname = [photopath lastpathcomponent];         nslog(@"uploadurl1  : %@",uploadurl1 );         nslog(@"photopath : %@",photopath);         nslog(@"photoname : %@",photoname);           nsdata *photodata = [nsdata datawithcontentsoffile:filepath];          if (photodata) {             gdataentryphoto *newentry = [gdataentryphoto photoentry];             [newentry settitlewithstring:photoname];             [newentry setphotodescriptionwithstring:filepath];             [newentry settimestamp:[gdataphototimestamp timestampwithdate:[nsdate date]]];             [newentry setphotodata:photodata];             nsstring *mimetype = [gdatautilities mimetypeforfileatpath:filepath                                                        defaultmimetype:@"image/jpeg"];             [newentry setphotomimetype:mimetype];             [newentry setuploadslug:photoname];             gdataservicegooglephotos *service = [self googlephotosservice];             sel progresssel = @selector(ticket:hasdeliveredbytecount:oftotalbytecount:);             service.authtoken = authtokens;             [service setserviceuploadprogressselector:progresssel];             gdataserviceticket *ticket;             ticket = [service fetchentrybyinsertingentry:newentry                                               forfeedurl:uploadurl1                                                 delegate:self   didfinishselector:@selector(addphototicket:finishedwithentry:error:)];         [service setserviceuploadprogressselector:nil];     }else {         nslog(@"@@@ image not loaded");     } don't know how send specific albumid don't need create new album ,if album found in account. 

how can achieve that??

i don't want create album same name,,get albumid , upload images on previous album. please me out. thank precious time.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -