【发布时间】:2016-12-06 08:36:01
【问题描述】:
我使用这些范围的注册
var scopes = '://www.googleapis.com/auth/plus.login ://www.googleapis.com/auth/plus.me ://www.googleapis.com/auth/plus.profile.emails.read ://www.googleapis.com/auth/plus.circles.read';
我使用此代码获取列表和计数用户
var request = gapi.client.plus.people.list({
'userId': 'me',
'collection': 'visible'
});
if (resp.totalItems)
result.friends = resp.totalItems;
结果这个脚本是
etag:""FT7X6cYw9BSnPtIywEFNNGVVdio/ObDqMibaPxXUs7wb-vH72G2zQbI""
items:[]
kind:"plus#peopleFeed"
title:"Google+ List of Visible People"
totalItems:0
我在哪里做错了?
【问题讨论】:
标签: javascript google-plus google-api-js-client