Method: giftcardobject.get
Menampilkan objek kartu voucher dengan ID objek yang diberikan.
Permintaan HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{resourceId}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
resourceId |
string
ID unik untuk objek. ID ini harus unik di semua objek 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 GiftCardObject
.
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-04 UTC.
[null,null,["Terakhir diperbarui pada 2024-11-04 UTC."],[[["Retrieves a gift card object using its unique object ID."],["The request requires an empty body and uses the `GET` HTTP method."],["Successful responses will contain a `GiftCardObject` in the response body."],["Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` scope."],["The object ID must follow a specific format and should be unique across all issuer objects."]]],["The core content describes retrieving a gift card object using a GET request. The request URL is `https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{resourceId}`, where `{resourceId}` is a unique identifier composed of an issuer ID and a chosen identifier. The request body must be empty. A successful request returns a `GiftCardObject`. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope. The format of the identifier should include alphanumeric characters, '.', '_', or '-'.\n"]]