Method: accounts.get
HTTP 请求
GET https://analyticsadmin.googleapis.com/v1beta/{name=accounts/*}
网址采用 gRPC 转码语法。
路径参数
参数 |
name |
string
必需。要查找的帐号的名称。格式:accounts/{account}。示例:“accounts/100”
|
响应正文
如果成功,则响应正文包含一个 Account
实例。
授权范围
需要以下 OAuth 范围之一:
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-05-06。
[null,null,["最后更新时间 (UTC):2024-05-06。"],[[["Lookup account details using the provided API endpoint with a GET request."],["Specify the account to lookup using the `name` path parameter in the format `accounts/{account}`."],["The API requires authorization using specified OAuth scopes for either read or edit access."],["Successful requests will return an Account object containing the requested account information."]]],["This document outlines the process for retrieving a single account using the Analytics Admin API. A `GET` request is made to `https://analyticsadmin.googleapis.com/v1beta/{name=accounts/*}`, with the account identifier provided in the `name` path parameter (e.g., `accounts/100`). The request body must be empty. A successful response returns an `Account` instance. Access requires either `analytics.readonly` or `analytics.edit` OAuth scopes. The `try it!` button allows to experiment.\n"]]