Google Api - 如何使用 PHP 客户端库更新 G+ 配置文件信息
Google Api - How To Update G+ Profile Information Using PHP Client Library
我正在使用https://github.com/google/google-api-php-client
我需要访问哪个范围,如何更改授权用户的职业?
这是我目前所拥有的,但它没有保存数据,只是将其设置为 属性,没有 post 返回到 google:
$plus = new Google_Service_Plus($google); //$google is an authorized client instance
$me = $plus->people->get('me');
$me->setOccupation('tester');
没有写入 API 可用于更新 Google+ 个配置文件。
我正在使用https://github.com/google/google-api-php-client
我需要访问哪个范围,如何更改授权用户的职业?
这是我目前所拥有的,但它没有保存数据,只是将其设置为 属性,没有 post 返回到 google:
$plus = new Google_Service_Plus($google); //$google is an authorized client instance
$me = $plus->people->get('me');
$me->setOccupation('tester');
没有写入 API 可用于更新 Google+ 个配置文件。