リクエストされたリソース名のリストを指定して、特定のユーザーのリストに関する情報を提供します。people/me を使用して、認証されたユーザーを指定します。
「personFields」が指定されていない場合、リクエストは 400 エラーを返します。
HTTP リクエスト
GET https://people.googleapis.com/v1/people:batchGet
この URL は gRPC Transcoding 構文を使用します。
クエリ パラメータ
| パラメータ | |
|---|---|
resourceNames[] |
必須。情報を提供するユーザーのリソース名。再現性があります。URL クエリ パラメータは
リソース名は最大 200 個です。 |
requestMask |
非推奨(代わりに 結果を人物フィールドのサブセットに制限するためのマスク。 |
personFields |
必須。各ユーザーのどのフィールドが返されるかを制限するフィールド マスク。複数のフィールドを指定する場合は、フィールドをカンマで区切ります。指定できる値は次のとおりです。
|
sources[] |
省略可。返されるソースタイプのマスク。設定しない場合のデフォルトは |
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
リソース名ごとのユーザーのリストを取得する Get リクエストに対するレスポンス。
成功した場合、レスポンスの本文には次の構造のデータが含まれます。
| JSON 表現 |
|---|
{
"responses": [
{
object ( |
| フィールド | |
|---|---|
responses[] |
リクエストされた各リソース名に対するレスポンス。 |
認可スコープ
一般公開データにアクセスする際に認可は必要ありません。非公開データの場合は、次のいずれかの OAuth スコープが必要です。
https://www.googleapis.com/auth/contactshttps://www.googleapis.com/auth/contacts.readonlyhttps://www.googleapis.com/auth/contacts.other.readonlyhttps://www.googleapis.com/auth/directory.readonlyhttps://www.googleapis.com/auth/profile.agerange.readhttps://www.googleapis.com/auth/profile.emails.readhttps://www.googleapis.com/auth/profile.language.readhttps://www.googleapis.com/auth/user.addresses.readhttps://www.googleapis.com/auth/user.birthday.readhttps://www.googleapis.com/auth/user.emails.readhttps://www.googleapis.com/auth/user.gender.readhttps://www.googleapis.com/auth/user.organization.readhttps://www.googleapis.com/auth/user.phonenumbers.readhttps://www.googleapis.com/auth/userinfo.emailhttps://www.googleapis.com/auth/userinfo.profilehttps://www.googleapis.com/auth/profile.language.read
詳しくは、認可ガイドをご覧ください。