Method: genericclass.get
کلاس عمومی را با شناسه کلاس داده شده برمی گرداند.
درخواست HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/genericClass/{resourceId}
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
پارامترها |
---|
resource Id | string شناسه منحصر به فرد برای یک کلاس. این شناسه باید در همه کلاسها از یک صادرکننده منحصربهفرد باشد. این مقدار باید از قالب issuerID.identifier پیروی کند که در آن issuerID توسط Google صادر میشود و identifier توسط شما انتخاب میشود. شناسه منحصر به فرد فقط می تواند شامل نویسه های الفبایی باشد، . ، _ ، یا - . |
درخواست بدن
بدنه درخواست باید خالی باشد.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی نمونه ای از GenericClass
است.
محدوده مجوز
به محدوده 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 generic class with a specific class ID using a GET request."],["The class ID must be unique across all classes from an issuer and follow a specific format."],["The request body should be empty, and the response includes the GenericClass object if successful."],["Requires authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["The core content describes retrieving a generic class using its ID. A `GET` request is made to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/genericClass/{resourceId}`, utilizing gRPC Transcoding. The `resourceId` path parameter, formatted as `issuerID.identifier`, uniquely identifies the class. The request body must be empty. A successful request returns a `GenericClass` instance in the response body. Access requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]