I am using these scopes for registration:
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';
This code is used to get a list and count of users:
var request = gapi.client.plus.people.list({
'userId': 'me',
'collection': 'visible'
});
if (resp.totalItems)
result.friends = resp.totalItems;
The result of this script is:
etag:""FT7X6cYw9BSnPtIywEFNNGVVdio/ObDqMibaPxXUs7wb-vH72G2zQbI""
items:[]
kind:"plus#peopleFeed"
title:"Google+ List of Visible People"
totalItems:0
Where did I go wrong?