Method: grants.create
指定したパッケージへのアクセス権をユーザーに付与します。
HTTP リクエスト
POST https://androidpublisher.googleapis.com/androidpublisher/v3/{parent=developers/*/users/*}/grants
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
parent |
string
必須。権限が必要なユーザー。形式: developers/{developer}/users/{user}
|
リクエスト本文
リクエストの本文には Grant
のインスタンスが含まれています。
レスポンスの本文
成功した場合、レスポンスの本文には、新しく作成された Grant
のインスタンスが含まれます。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/androidpublisher
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-22 UTC。
[null,null,["最終更新日 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."]]],[]]