Method: loyaltyclass.get
Menampilkan class loyalitas dengan ID class yang diberikan.
Permintaan HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass/{resourceId}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
resourceId |
string
ID unik untuk class. ID ini harus unik di semua class dari penerbit. Nilai ini harus mengikuti format issuer ID.identifier yang pertama diterbitkan oleh Google, dan yang kedua dipilih oleh Anda. ID unik Anda hanya boleh menyertakan karakter alfanumerik, '.', '_', atau '-'.
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Jika berhasil, isi respons memuat instance LoyaltyClass
.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/wallet_object.issuer
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-11-07 UTC.
[null,null,["Terakhir diperbarui pada 2024-11-07 UTC."],[[["Retrieves a loyalty class using its unique ID."],["The request requires an empty body and uses the `GET` HTTP method."],["The response provides details of the loyalty class if successful."],["Authorization is necessary with the `https://www.googleapis.com/auth/wallet_object.issuer` scope."],["The loyalty class ID format is `issuer ID.identifier` with specific character restrictions."]]],["The core content describes retrieving a loyalty class using a `GET` request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass/{resourceId}`. The `{resourceId}` path parameter, a unique string identifier (issuer ID.identifier), is required. The request body must be empty. A successful response returns a `LoyaltyClass` object. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]