Google Create Contact Api v3 - in batch request all contacts got contactID but only few got inserted -
i tried insert 4000 contacts using google create contact api client library using batch request. google returned 4000 google contact ids. when try fetch contacts using contact ids, observed around 1000 contacts inserted , remaining empty contacts. cross checked in google contacts ui , via api also. reasons problem.
samplecode:
batchutils.setbatchid(newentry, "create"); batchutils.setbatchoperationtype(newentry, batchoperationtype.insert); requestfeed.getentries().add(newentry); //requestfeed contactfeed , newentry contactentry posturl=new url("https://www.google.com/m8/feeds/contacts/default/full/batch?xoauth_requestor_id=" + loginuser); contactfeed responsefeed =conservice.batch(posturl,requestfeed);
Comments
Post a Comment