Method: transitclass.get
แสดงผลชั้นยานพาหนะที่มีรหัสชั้นที่ระบุ
คำขอ HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/transitClass/{resourceId}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
resourceId |
string
ตัวระบุที่ไม่ซ้ำกันสำหรับชั้นเรียน รหัสนี้ต้องไม่ซ้ำกันในทุกชั้นเรียนจากผู้ออกบัตร ค่านี้ควรเป็นไปตามรูปแบบ issuer IDidentifierที่บัญชีแรกออกโดย Google และคุณเป็นผู้เลือกรายการหลัง ตัวระบุที่ไม่ซ้ำกันควรประกอบด้วยอักขระที่เป็นตัวอักษรและตัวเลขคละกัน, '.', '_' หรือ "-" เท่านั้น
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ TransitClass
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/wallet_object.issuer
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-07 UTC
[null,null,["อัปเดตล่าสุด 2024-11-07 UTC"],[[["Retrieves a transit class using its unique identifier."],["The class ID should follow a specific format: issuer ID + your unique identifier."],["Request body should be empty, and a successful response returns the TransitClass object."],["Requires authorization with the `wallet_object.issuer` scope."]]],["The core content describes retrieving a transit class using its unique ID. A `GET` request is sent to a specified URL, formatted with gRPC Transcoding syntax. The `resourceId` path parameter, a unique string composed of issuer ID and an identifier, is required. The request body must be empty. A successful response returns a `TransitClass` object. This action requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]