为什么我无法通过People API接收地址

问题描述 投票:1回答:1

我正在尝试通过People API在我的Google帐户中获取设置的地址。

我要求

https://www.googleapis.com/auth/user.addresses.read

通过Java的Oauth2同意窗口的范围。

我已在我的控制台api中启用了地址范围和

$service->people->get('people/me', [
        'personFields' => 'addresses,names,emailAddresses,genders'
    ]);

这实际上是我获得人们反对的方式。由于某些原因,地址未填充,可能是什么问题?

php google-api google-api-php-client google-people-api
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.