Method: accounts.get
Поиск одной учетной записи.
HTTP-запрос
GET https://analyticsadmin.googleapis.com/v1beta/{name=accounts/*}
URL-адрес использует синтаксис транскодирования gRPC .
Параметры пути
Параметры |
---|
name | string Необходимый. Имя учетной записи для поиска. Формат: account/{account} Пример: "accounts/100" |
Тело запроса
Тело запроса должно быть пустым.
Тело ответа
В случае успеха тело ответа содержит экземпляр Account
.
Области авторизации
Требуется одна из следующих областей OAuth:
-
https://www.googleapis.com/auth/analytics.readonly
-
https://www.googleapis.com/auth/analytics.edit
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-10-25 UTC.
[null,null,["Последнее обновление: 2024-10-25 UTC."],[[["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"]]