Method: transitclass.addmessage
เพิ่มข้อความไปยังชั้นโดยสารที่อ้างอิงตามรหัสคลาสที่ระบุ
คำขอ HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/transitClass/{resourceId}/addMessage
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
resourceId |
string
ตัวระบุที่ไม่ซ้ำกันสำหรับชั้นเรียน รหัสนี้ต้องไม่ซ้ำกันในทุกคลาสจากผู้ออกบัตร ค่านี้ควรเป็นไปตามรูปแบบ issuer IDidentifierที่บัญชีแรกออกโดย Google และคุณเป็นผู้เลือกรายการหลัง ตัวระบุที่ไม่ซ้ำกันควรมีเฉพาะอักขระที่เป็นตัวอักษรและตัวเลขคละกัน, ".", "_" หรือ "-" เท่านั้น
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ AddMessageRequest
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
ช่อง |
resource |
object (TransitClass )
ทรัพยากร TransitClass ที่อัปเดตแล้ว
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/wallet_object.issuer
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-03-13 UTC
[null,null,["อัปเดตล่าสุด 2025-03-13 UTC"],[[["Adds a message to an existing transit class identified by a unique class ID."],["The request body should contain an `AddMessageRequest` as defined in the API reference."],["A successful response returns the updated `TransitClass` object."],["Requires `wallet_object.issuer` OAuth scope for authorization."]]],["This document outlines adding a message to a transit class via an HTTP POST request to `https://walletobjects.googleapis.com/walletobjects/v1/transitClass/{resourceId}/addMessage`. The `resourceId`, a unique class identifier, is a path parameter. The request body utilizes the `AddMessageRequest` structure. Successful requests return a JSON response containing the updated `TransitClass` resource. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]