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.invitations.list
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zawiera listę oczekujących zaproszeń dla określonego konta.
Żądanie HTTP
GET https://mybusiness.googleapis.com/v4/{parent=accounts/*}/invitations
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
parent |
string
Nazwa konta, z którego pobierana jest lista zaproszeń.
|
Parametry zapytania
Parametry |
targetType |
enum (TargetType )
Określa typy celów, które powinny się pojawić w odpowiedzi.
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
W przypadku powodzenia treść żądania zawiera dane o następującej strukturze:
Komunikat z odpowiedzią dla AccessControl.ListInvitations.
Zapis JSON |
{
"invitations": [
{
object (Invitation )
}
]
} |
Pola |
invitations[] |
object (Invitation )
Kolekcja zaproszeń do lokalizacji, które oczekują na konto. Podana tutaj liczba zaproszeń nie może przekraczać 1000.
|
Zakresy autoryzacji
Wymaga jednego z tych zakresów protokołu 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.
TargetType
Typ elementu docelowego, do którego jest kierowane zaproszenie.
Wartości w polu enum |
ALL |
Wyświetl zaproszenia dla wszystkich typów celów. Jest to ustawienie domyślne. |
ACCOUNTS_ONLY |
Wyświetlaj zaproszenia tylko do grup docelowych typu Konto. |
LOCATIONS_ONLY |
Wyświetlaj zaproszenia tylko w przypadku elementów docelowych typu Lokalizacja. |
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: 2024-08-22 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2024-08-22 UTC."],[[["This endpoint retrieves pending invitations for a specified Google My Business account."],["It allows filtering by target type (Account or Location) using the `targetType` query parameter."],["The response includes a list of invitations with details, limited to a maximum of 1000."],["Authorization is required using specific OAuth scopes related to business management."],["This endpoint is deprecated; consider using the Account Management API instead."]]],["This document outlines the process of listing pending invitations for a specified account using the deprecated API. It uses a `GET` request to `https://mybusiness.googleapis.com/v4/{parent=accounts/*}/invitations`. The `parent` path parameter specifies the account. The `targetType` query parameter filters invitation types. An empty request body is required. The response returns a JSON array of `invitations`, each represented as an object. The request needs either the `plus.business.manage` or `business.manage` authorization scope. Three types are available: ALL, ACCOUNTS_ONLY and LOCATIONS_ONLY.\n"]]