Method: purchases.products.get
Memeriksa status pembelian dan pemakaian item dalam aplikasi.
Permintaan HTTP
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
packageName |
string
Nama paket aplikasi tempat produk dalam aplikasi dijual (misalnya, 'com.some.thing').
|
productId |
string
SKU produk dalam aplikasi (misalnya, 'com.some.thing.inapp1').
|
token |
string
Token yang diberikan ke perangkat pengguna saat produk dalam aplikasi dibeli.
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Jika berhasil, isi respons memuat instance ProductPurchase
.
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."],[[["This operation checks the purchase and consumption status of an in-app product."],["It requires an HTTP GET request to a specific URL with the package name, product ID, and purchase token."],["The request body must be empty, and the response provides details about the product purchase."],["This functionality requires authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This document outlines the process to check the status of an in-app purchase. It uses a `GET` HTTP request to a specific URL, structured with `packageName`, `productId`, and `token` as path parameters. The request body must be empty. A successful request returns a `ProductPurchase` instance in the response body. The operation requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope for authorization. It includes instructions to obtain a purchase status.\n"]]