リソース名を指定して個人に関する情報を提供します。people/me を使用して、認証済みユーザーを示します。
「personFields」が指定されていない場合、リクエストは 400 エラーを返します。
HTTP リクエスト
GET https://people.googleapis.com/v1/{resourceName=people/*}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
| パラメータ | |
|---|---|
resourceName |
必須。情報を提供する個人のリソース名。
|
クエリ パラメータ
| パラメータ | |
|---|---|
requestMask |
非推奨(代わりに 結果をユーザー フィールドのサブセットに制限するマスク。 |
personFields |
必須。人物のどのフィールドが返されるかを制限するフィールド マスク。複数のフィールドを指定する場合は、フィールドをカンマで区切ります。指定できる値は次のとおりです。
|
sources[] |
省略可。返すソースタイプのマスク。設定しない場合、デフォルトは |
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功した場合、レスポンスの本文には Person のインスタンスが含まれます。
承認スコープ
一般公開データへのアクセスには承認は不要です。限定公開データの場合は、次のいずれかの 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
詳しくは、承認ガイドをご覧ください。