Method: accounts.invitations.list
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
指定したアカウントについて、承認待ちとなっている招待の一覧を取得します。
HTTP リクエスト
GET https://mybusiness.googleapis.com/v4/{parent=accounts/*}/invitations
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
parent |
string
招待のリストを取得するアカウントの名前です。
|
クエリ パラメータ
パラメータ |
targetType |
enum (TargetType )
レスポンスに表示するターゲット タイプを指定します。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功した場合、レスポンスの本文には次の構造のデータが含まれます。
AccessControl.ListInvites に対するレスポンス メッセージです。
JSON 表現 |
{
"invitations": [
{
object (Invitation )
}
]
} |
フィールド |
invitations[] |
object (Invitation )
アカウントで保留になっているビジネス情報の招待状のコレクションです。ここに表示される招待の数は 1,000 以下にしてください。
|
認可スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
詳しくは、OAuth 2.0 の概要をご覧ください。
TargetType
列挙型 |
ALL |
すべてのターゲット タイプの招待を一覧表示します。これがデフォルトです。 |
ACCOUNTS_ONLY |
アカウント タイプの招待のみをリストします。 |
LOCATIONS_ONLY |
Location タイプの招待のみを一覧表示します。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-22 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-08-22 UTC。"],[[["This endpoint retrieves pending invitations for a specified Google My Business account."],["It allows filtering by target type (Account or Location) using the `targetType` query parameter."],["The response includes a list of invitations with details, limited to a maximum of 1000."],["Authorization is required using specific OAuth scopes related to business management."],["This endpoint is deprecated; consider using the Account Management API instead."]]],["This document outlines the process of listing pending invitations for a specified account using the deprecated API. It uses a `GET` request to `https://mybusiness.googleapis.com/v4/{parent=accounts/*}/invitations`. The `parent` path parameter specifies the account. The `targetType` query parameter filters invitation types. An empty request body is required. The response returns a JSON array of `invitations`, each represented as an object. The request needs either the `plus.business.manage` or `business.manage` authorization scope. Three types are available: ALL, ACCOUNTS_ONLY and LOCATIONS_ONLY.\n"]]