Interfejs
Google Business Performance API udostępnia
NOWĄ metodę interfejsu API, która umożliwia pobieranie wielu parametrów „DailyMetrics” w jednym żądaniu API.
Zapoznaj się z
harmonogramem wycofywania i instrukcjami, jak przejść z metody raportu API w wersji 4 na interfejs Google Business Profile Performance API.
Method: accounts.generateAccountNumber
Generuje numer konta dla tego konta. Numer konta nie jest udostępniany po utworzeniu konta. Użyj tej prośby, aby utworzyć numer konta, jeśli jest wymagany.
Żądanie HTTP
POST https://mybusiness.googleapis.com/v4/{name=accounts/*}:generateAccountNumber
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
name |
string
Nazwa konta, dla którego ma zostać wygenerowany numer konta.
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu Account
.
Zakresy autoryzacji
Wymaga jednego z tych zakresów OAuth:
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
Więcej informacji znajdziesz w artykule Omówienie protokołu OAuth 2.0.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2023-12-02 UTC.
[null,null,["Ostatnia aktualizacja: 2023-12-02 UTC."],[[["This endpoint generates an account number for an existing Google My Business account, which is not automatically provisioned during account creation."],["To generate an account number, send an empty POST request to the specified endpoint, including the account name in the path."],["A successful request returns the Account resource, containing the generated account number."],["Requires appropriate OAuth scopes for authorization, such as `https://www.googleapis.com/auth/plus.business.manage` or `https://www.googleapis.com/auth/business.manage`."],["This endpoint is marked as deprecated and might be subject to removal or changes in the future."]]],["This content describes how to generate an account number for an existing account via a deprecated endpoint. A `POST` request is sent to `https://mybusiness.googleapis.com/v4/{name=accounts/*}:generateAccountNumber` with the account's name as a path parameter. The request body must be empty. A successful request returns an `Account` instance in the response body. Authorization requires one of two specified OAuth scopes. The URL utilizes gRPC Transcoding syntax.\n"]]