Method: inappproducts.get
Mendapatkan produk dalam aplikasi, yang dapat berupa produk terkelola atau langganan.
Metode ini tidak lagi digunakan untuk mengambil langganan. Lihat artikel ini untuk informasi selengkapnya.
Permintaan HTTP
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
packageName |
string
Nama paket aplikasi.
|
sku |
string
ID unik untuk produk dalam aplikasi.
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Jika berhasil, isi respons memuat instance InAppProduct
.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/androidpublisher
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-12-17 UTC.
[null,null,["Terakhir diperbarui pada 2024-12-17 UTC."],[[["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"]]