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.locations.questions.create
Dodaje pytanie dotyczące określonej lokalizacji.
Żądanie HTTP
POST https://mybusiness.googleapis.com/v4/{parent=accounts/*/locations/*}/questions
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
parent |
string
Nazwa lokalizacji, do której chcesz dodać pytanie.
|
Treść żądania
Treść żądania zawiera wystąpienie elementu Question
.
Treść odpowiedzi
Jeśli operacja się uda, treść odpowiedzi będzie zawierała nowo utworzoną instancję Question
.
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."],[[["Adds a question for a specified location using an HTTP POST request."],["Requires providing the location name as a path parameter and the question details in the request body as a `Question` object."],["A successful response returns the newly created `Question` object."],["Requires authorization with specific OAuth scopes for business management."]]],["This outlines the process of adding a question to a specific location via an API. A `POST` request is made to the provided URL, including the location's name in the `parent` path parameter. The request body requires a `Question` instance. Upon success, the API returns a newly created `Question` instance in the response. Authorization requires one of two specified OAuth scopes, `plus.business.manage` or `business.manage`. The process follows gRPC Transcoding syntax.\n"]]