Ios 如何获取所有google plus好友?
我正在尝试获取google plus好友列表,目前我只有100个好友。这是我当前的代码Ios 如何获取所有google plus好友?,ios,google-api,google-plus,Ios,Google Api,Google Plus,我正在尝试获取google plus好友列表,目前我只有100个好友。这是我当前的代码 GTLQueryPlus *query = [GTLQueryPlus queryForPeopleListWithUserId:@"me" collection:kGTLPlusCollectionVisible]; [plusService executeQuery:query completionHandle
GTLQueryPlus *query =
[GTLQueryPlus queryForPeopleListWithUserId:@"me"
collection:kGTLPlusCollectionVisible];
[plusService executeQuery:query
completionHandler:^(GTLServiceTicket *ticket,
GTLPlusPeopleFeed *peopleFeed,
NSError *error) {
if (error) {
GTMLoggerError(@"Error: %@", error);
} else {
// Get an array of people from GTLPlusPeopleFeed
NSArray* peopleList = peopleFeed.items;
}
}];
当我搜索时,我找到了这个链接,发现Google在页面中提供了列表,最大设置为100,所以要获取另一个列表,我需要使用pageToken。我在当前响应中找不到任何pagetoken属性。我从何处获取此pagetoken以及如何发出请求?
GTLPlusPeopleFeed
对象有一个nextPageToken
属性。请参阅中的注释
您可以将此作为参数提供给下一次调用
queryForPeopleListWithUserId
,以从查询中获取下一批结果。请参见注释从您自己的文档中,似乎您必须获取nextPageToken,然后将其用作下一页标记。上面有一个JSON显示了nextPageToken