My Business Account Management API
My Business Account Management API 提供了一个接口,用于管理对 Google 上某个营业地点的访问权限。
注意:如果您在启用该 API 后的配额为 0,请申请 GBP API 访问权限。
服务:mybusinessaccountmanagement.googleapis.com
要调用此服务,我们建议您使用 Google 提供的客户端库。如果您的应用程序需要使用自己的库来调用此服务,请在发出 API 请求时使用以下信息。
发现文档
发现文档是用于说明和使用 REST API 的机器可读规范。它用于构建客户端库、IDE 插件以及与 Google API 交互的其他工具。一项服务可能会提供多个发现文档。此服务提供了以下发现文档:
服务端点
服务端点是指定 API 服务的网络地址的基本网址。一项服务可能有多个服务端点。此服务具有以下服务端点,下面的所有 URI 都与此服务端点相关:
https://mybusinessaccountmanagement.googleapis.com
方法 |
create |
POST /v1/accounts
在指定的父级下创建具有指定名称和类型的帐号。 |
get |
GET /v1/{name=accounts/*}
获取指定的帐号。 |
list |
GET /v1/accounts
列出经过身份验证的用户的所有帐号。 |
patch |
PATCH /v1/{account.name=accounts/*}
更新指定的商家帐号。 |
方法 |
create |
POST /v1/{parent=accounts/*}/admins
邀请指定用户担任指定帐号的管理员。 |
delete |
DELETE /v1/{name=accounts/*/admins/*}
从指定帐号中移除指定管理员。 |
list |
GET /v1/{parent=accounts/*}/admins
列出指定帐号的管理员。 |
patch |
PATCH /v1/{accountAdmin.name=accounts/*/admins/*}
更新指定帐号管理员的管理员。 |
方法 |
accept |
POST /v1/{name=accounts/*/invitations/*}:accept
接受指定的邀请。 |
decline |
POST /v1/{name=accounts/*/invitations/*}:decline
拒绝指定的邀请。 |
list |
GET /v1/{parent=accounts/*}/invitations
列出指定帐号的待处理邀请。 |
方法 |
transfer |
POST /v1/{name=locations/*}:transfer
将营业地点从用户拥有的账号迁移到同一用户管理的另一个账号。 |
方法 |
create |
POST /v1/{parent=locations/*}/admins
邀请指定用户担任指定营业地点的管理员。 |
delete |
DELETE /v1/{name=locations/*/admins/*}
移除担任指定营业地点管理员的指定管理员。 |
list |
GET /v1/{parent=locations/*}/admins
列出指定营业地点的所有管理员。 |
patch |
PATCH /v1/{locationAdmin.name=locations/*/admins/*}
更新指定营业地点的 Admin。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-01。
[null,null,["最后更新时间 (UTC):2023-12-01。"],[[["The My Business Account Management API allows you to manage access to Google Business Profile locations."],["You can create and manage Google Business Profile accounts, including inviting and removing administrators."],["The API enables managing location access, including transferring locations between accounts and managing location administrators."],["Users with a quota of 0 after enabling the API should request GBP API access for full functionality."]]],[]]