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
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[],["A `POST` request is sent to `https://androidpublisher.googleapis.com/androidpublisher/v3/{parent=developers/*/users/*}/grants` to grant user access to a package. The `parent` path parameter, formatted as `developers/{developer}/users/{user}`, specifies the user receiving permission. The request body includes a `Grant` instance, and a successful response returns a new `Grant` instance. Authorization requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope. The URL follows gRPC Transcoding syntax.\n"]]