Method: operators.clients.users.planStatus.create
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zezwala operatora sieci komórkowej (określanego na podstawie jego unikalnego numeru systemu autonomicznego) na dodawanie nowego wpisu PlanStatus, który będzie używany przez konkretnego klienta.
Żądanie HTTP
POST https://mobiledataplansharing.googleapis.com/v1/{parent=operators/*}/clients/{clientId}/users/{userKey}/planStatus
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
parent |
string
Nazwa zasobu nadrzędnego w formacie operators/{asn_id} .
|
clientId |
string
Klient, dla którego stan planu jest udostępniany Google. Obsługiwane identyfikatory klienta to mobiledataplan i youtube.
|
userKey |
string
Klucz użytkownika identyfikujący użytkownika, którego stan abonamentu jest tworzony.
|
Treść żądania
Treść żądania zawiera wystąpienie elementu PlanStatus
.
Treść odpowiedzi
Jeśli operacja się uda, treść odpowiedzi będzie zawierała nowo utworzoną instancję PlanStatus
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/dataplansharing
Więcej informacji znajdziesz w artykule Omówienie 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: 2022-09-26 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: 2022-09-26 UTC."],[[["This API enables mobile operators to add new plan status entries for users, utilized by specific clients."],["The request should be a POST request sent to the specified URL with path parameters for operator ASN, client ID, and user key."],["The request body must contain a `PlanStatus` object, and a successful response will return the created `PlanStatus` object."],["Authorization requires the `https://www.googleapis.com/auth/dataplansharing` OAuth scope."]]],["A mobile operator uses a POST request to add a new `PlanStatus` entry for a specific user. The request targets a URL structured with `parent` (operator ASN), `clientId` (e.g., mobiledataplan, youtube), and `userKey`. The request body includes `PlanStatus` data, and a successful response returns a new `PlanStatus` instance. Authorization requires the `https://www.googleapis.com/auth/dataplansharing` OAuth scope. The core action is adding a new PlanStatus for a user.\n"]]