Method: genericclass.get
แสดงผลคลาสทั่วไปที่มีรหัสคลาสที่ระบุ
คำขอ HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/genericClass/{resourceId}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
resourceId |
string
ตัวระบุที่ไม่ซ้ำกันสำหรับชั้นเรียน รหัสนี้ต้องไม่ซ้ำกันในทุกคลาสจากผู้ออกบัตร ค่านี้ต้องเป็นไปตามรูปแบบ issuerID.identifier ซึ่ง Google เป็นผู้ออก issuerID และคุณเป็นผู้เลือก identifier ตัวระบุที่ไม่ซ้ำกันต้องมีได้เฉพาะอักขระที่เป็นตัวอักษรและตัวเลขคละกัน, . , _ หรือ - เท่านั้น
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ GenericClass
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/wallet_object.issuer
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-04 UTC
[null,null,["อัปเดตล่าสุด 2024-11-04 UTC"],[[["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"]]