Method: accounts.invitations.list
HTTP 请求
GET https://mybusiness.googleapis.com/v4/{parent=accounts/*}/invitations
网址采用 gRPC 转码语法。
路径参数
参数 |
parent |
string
从中检索邀请列表的账号的名称。
|
查询参数
参数 |
targetType |
enum (TargetType )
指定应在响应中显示的目标类型。
|
响应正文
如果成功,响应正文将包含结构如下的数据:
AccessControl.ListInvitations 的响应消息。
JSON 表示法 |
{
"invitations": [
{
object (Invitation )
}
]
} |
字段 |
invitations[] |
object (Invitation )
该账号待处理的营业地点邀请集合。此处列出的邀请数不能超过 1000。
|
授权范围
需要以下 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 |
仅列出针对“地理位置”类型的目标的邀请。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-22。
[null,null,["最后更新时间 (UTC):2024-08-22。"],[[["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"]]