Method: giftcardclass.get
کلاس کارت هدیه را با شناسه کلاس داده شده برمی گرداند.
درخواست HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
پارامترها |
---|
resource Id | string شناسه منحصر به فرد برای یک کلاس. این شناسه باید در همه کلاسها از یک صادرکننده منحصربهفرد باشد. این مقدار باید از issuer ID قالب پیروی کند. identifier جایی که اولی توسط Google صادر می شود و دومی توسط شما انتخاب می شود. شناسه منحصر به فرد شما باید فقط شامل کاراکترهای الفبایی، '.'، '_' یا '-' باشد. |
درخواست بدن
بدنه درخواست باید خالی باشد.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی نمونه ای از GiftCardClass
است.
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/wallet_object.issuer
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-11-12 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-11-12 بهوقت ساعت هماهنگ جهانی."],[[["Retrieves a gift card class using its unique identifier."],["The request requires an empty body and uses the `GET` HTTP method."],["The response provides the details of the gift card class if successful."],["Requires authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope."],["Class ID should adhere to a specific format, including the issuer ID and a unique identifier chosen by the user."]]],["The core content describes retrieving a gift card class using a GET request. The request URL is structured with a `resourceId` path parameter, which uniquely identifies the class and follows a specific format. The request body must be empty. A successful response returns an instance of `GiftCardClass`. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope. The `gRPC Transcoding` syntax is used for the URL.\n"]]