Method: monetization.subscriptions.get
Permintaan HTTP
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
packageName |
string
Wajib. Aplikasi induk (nama paket) langganan yang akan didapatkan.
|
productId |
string
Wajib. ID produk unik langganan yang akan didapatkan.
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Jika berhasil, isi respons memuat instance Subscription
.
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 single subscription within a specified app."],["Requires providing the app's package name and the unique product ID of the subscription."],["Utilizes an HTTP GET request and returns subscription data in the response body."],["Needs authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This document outlines the process of retrieving a single subscription using an HTTP GET request. The request targets a specific URL, structured with `packageName` and `productId` as mandatory path parameters. The request body must be empty. A successful request returns a `Subscription` instance in the response body. The action requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope for authorization. It uses gRPC Transcoding syntax.\n"]]