Method: grants.create
Przyznaj użytkownikowi dostęp do danego pakietu.
Żądanie HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/{parent=developers/*/users/*}/grants
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
parent |
string
To pole jest wymagane. Użytkownik, który potrzebuje uprawnień. Format: deweloperzy/{developer}/users/{użytkownik}
|
Treść żądania
Treść żądania zawiera wystąpienie elementu Grant
.
Treść odpowiedzi
Jeśli operacja się uda, treść odpowiedzi będzie zawierała nowo utworzoną instancję Grant
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/androidpublisher
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.
[null,null,["Ostatnia aktualizacja: 2024-08-22 UTC."],[[["Grant access to a specific package for a designated user using an HTTP POST request."],["The request should target the URL `https://androidpublisher.googleapis.com/androidpublisher/v3/{parent=developers/*/users/*}/grants` and include user details in the path parameter."],["Provide the necessary grant details within the request body, adhering to the structure of the `Grant` object as defined in the API reference."],["Upon successful execution, the response will contain the newly created `Grant` object, confirming the access permission."],["Authorization necessitates the use of the `https://www.googleapis.com/auth/androidpublisher` OAuth scope."]]],[]]