Php 如何为特定的Google Plus用户列出Google Plus业务?

Php 如何为特定的Google Plus用户列出Google Plus业务?,php,google-plus,google-api-php-client,Php,Google Plus,Google Api Php Client,如何使用库列出经过身份验证的用户的google plus业务页面 到目前为止,我可以使用代码页从用户的google plus页面查看用户个人信息和提要: require_once 'gplus/Google_Client.php'; require_once 'gplus/contrib/Google_PlusService.php'; $client = new Google_Client(); $client->setClientId('xxxxx.apps.googleuserco

如何使用库列出经过身份验证的用户的google plus业务页面

到目前为止,我可以使用代码页从用户的google plus页面查看用户个人信息和提要:

require_once 'gplus/Google_Client.php';
require_once 'gplus/contrib/Google_PlusService.php';
$client = new Google_Client();

$client->setClientId('xxxxx.apps.googleusercontent.com');
$client->setClientSecret('xxxxx');
$client->setRedirectUri('https://mywebsite.com/redirect');

$client->authenticate($code);
$token = $client->getAccessToken();

//Get only access token
$access_token_arr = json_decode($token);
$access_token = $access_token_arr->access_token;

//Get user info
$url = 'https://www.googleapis.com/oauth2/v1/userinfo?access_token='.$access_token;
$gplus_user = json_decode(file_get_contents($url)); //This gives me personal information about the user.