First of all the documentation is wrong. It says that the default value for MaxResult is 100, but if I do a query ( on my account with 31 lists) on the Tasks API explorer without setting the MaxResult parameter, I always get 20 items back with a nextPageToken to be able to query the next 20 items.
If I set the maxResults to 1, 10 or 100 nothing changes, I still get always 20 items.
Any help is appreciated.Thanks
UPDATE : This is how my query is made:
...
GTLQueryTasks* query = [self createQueryForCmd:cmd];
self.tasksTicket = [self.tasksService executeQuery:query completionHandler:^(GTLServiceTicket *ticket, id object, NSError *error) {
...// handle the response
}
...
// This helper method creates a query for each type of operation,I have omitted operations other than lists.list
-(GTLQueryTasks*)createQueryForCmd:(SyncCommand*) cmd{
NSString* listId = cmd.listId;
GTLQueryTasks *query = nil;
GTLObject* localObject = nil;
NSString* transactionETag = nil;
switch (cmd.syncOperation) {
/*------------Lists operations---------------------------------*/
case SyncOpListsList:{
query = [GTLQueryTasks queryForTasklistsList];
query.maxResults = 100;
break;
}
.....
}