You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Contacts API
Is it possible to do a batch query to return multiple contacts? This
is the batch XML I'm generating to query for just one contact and it
returns with the error "Invalid entry Id/Uri".
However searching through the forums, I think I should be posting a
contact's self link to the query instead of the contact's ID (which
looks like you just need to replace "/base/" with "/full/"). This
wasn't really clear in the documentation. Is there a way to query
using the contact's ID? I'm assuming the ID is guaranteed never to
change while the self link could.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Contacts API
I'm using the gdata-objectivec-client library and I'd like to batch
delete a bunch of contacts, for which their IDs are already known. To
do so, I'm making two batch requests - one to fetch the contacts' edit
links and the other to delete them. I think my fetch is wrong because
I can't delete the fetched objects.
Here are the main bits from my objective c code:
// Create empty contact to fetch the contact
NSString* googleContactID = ...; // contact id
GDataEntryContact* entry = [GDataEntryContact
contactEntryWithTitle:@""];
[entry setIdentifier:[googleContactID
stringByReplacingOccurrencesOfString:@"/base/" withString:@"/full/"]];
[entry setBatchOperation: [GDataBatchOperation
batchOperationWithType:kGDataBatchOperationQuery]];
GDataServiceGoogleContact *service = ...; // code to get service
[service fetchContactBatchFeedWithBatchFeed:batchFeed
forBatchFeedURL:batchURL delegate:self
didFinishSelector:@selector(batchOperationTicket:finishedWithFeed:)
didFailSelector:@selector(batchOperationTicket:failedWithError:)];
// On return, looping through batch results, set batch operation to
delete
GDataEntryContact *entry = [batchResults objectAtIndex:idx];
[entry setBatchOperation: [GDataBatchOperation
batchOperationWithType:kGDataBatchOperationDelete]];
// Send batch request again with deleted entries ...