Method: transitobject.get
แสดงผลออบเจ็กต์แผนการเดินทางที่มีรหัสออบเจ็กต์ที่กำหนด
คำขอ HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/transitObject/{resourceId}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
resourceId |
string
ตัวระบุที่ไม่ซ้ำกันสำหรับออบเจ็กต์ รหัสนี้ต้องไม่ซ้ำกันในทุกออบเจ็กต์จากผู้ออกบัตร ค่านี้ควรเป็นไปตามรูปแบบ issuer IDidentifierที่บัญชีแรกออกโดย Google และคุณเป็นผู้เลือกรายการหลัง ตัวระบุที่ไม่ซ้ำกันควรประกอบด้วยอักขระที่เป็นตัวอักษรและตัวเลขคละกัน, '.', '_' หรือ "-" เท่านั้น
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ TransitObject
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต 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 specific transit object using its unique identifier."],["The request requires an empty body and uses a GET HTTP method with the object's resource ID in the URL path."],["A successful response provides the details of the requested transit object."],["Authorization is necessary using the `wallet_object.issuer` scope."]]],["This document outlines the process for retrieving a transit object using its unique ID. A `GET` request is sent to the specified URL, including the `resourceId` as a path parameter. The `resourceId` is a string following the format \"issuer ID.identifier\". The request body must be empty. A successful response returns a `TransitObject` instance. This action requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization.\n"]]