Method: inappproducts.get
الحصول على منتج داخل التطبيق، والذي يمكن أن يكون منتجًا مُدارًا أو اشتراكًا
يجب عدم استخدام هذه الطريقة لاسترداد الاشتراكات. يُرجى الاطّلاع على هذه المقالة للحصول على مزيد من المعلومات.
طلب HTTP
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المعلمات |
packageName |
string
اسم حزمة التطبيق
|
sku |
string
معرّف فريد للمنتج داخل التطبيق
|
نص الطلب
يجب أن يكون نص الطلب فارغًا.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال InAppProduct
.
نطاقات التفويض
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/androidpublisher
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-12-17 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-12-17 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Retrieves details for a specified in-app product within a given app package."],["This method is deprecated for subscriptions; refer to the provided link for alternative approaches for subscriptions."],["Requires `packageName` and `sku` as path parameters to identify the target in-app product."],["Utilizes an empty request body and returns an `InAppProduct` object upon successful execution."],["Requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope for authorization."]]],["The core actions involve retrieving an in-app product using a GET request to a specific URL: `https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}`. Key information includes the use of path parameters, `packageName` and `sku`, to identify the app and product respectively. The request body must be empty. Successful requests return an instance of `InAppProduct`. This method requires authorization via the `https://www.googleapis.com/auth/androidpublisher` OAuth scope and is not to be used to retrieve subscriptions.\n"]]