Method: genericclass.addmessage
เพิ่มข้อความลงในคลาสทั่วไปที่อ้างอิงโดยรหัสคลาสที่ระบุ
คำขอ HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/genericClass/{resourceId}/addMessage
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
resourceId |
string
ตัวระบุที่ไม่ซ้ำกันสำหรับชั้นเรียน รหัสนี้ต้องไม่ซ้ำกันในทุกคลาสจากผู้ออกบัตร ค่านี้ควรเป็นไปตามรูปแบบ issuer IDidentifierที่บัญชีแรกออกโดย Google และคุณเป็นผู้เลือกรายการหลัง ตัวระบุที่ไม่ซ้ำกันควรมีเฉพาะอักขระที่เป็นตัวอักษรและตัวเลขคละกัน, ".", "_" หรือ "-" เท่านั้น
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ AddMessageRequest
เนื้อหาการตอบกลับ
การตอบสนองต่อการเพิ่มข้อความของผู้ออกใบรับรองใหม่ลงในชั้นเรียน ซึ่งประกอบด้วย GenericClass ที่อัปเดตแล้วทั้งหมด
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
ช่อง |
resource |
object (GenericClass )
ทรัพยากร EventTicketClass ที่อัปเดตแล้ว
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต 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"],[[["Adds a new message to an existing generic class identified by a unique class ID."],["The request requires providing an `AddMessageRequest` in the body and uses the `POST` method."],["The response provides the updated `GenericClass` object, including the new message."],["Utilizes the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope."],["The class ID follows a specific format, \u003cvar translate=\"no\"\u003eissuer ID\u003c/var\u003e.\u003cvar translate=\"no\"\u003eidentifier\u003c/var\u003e, with constraints on the characters allowed in the identifier."]]],["This document outlines the process for adding a message to a generic class using a `POST` HTTP request to a specific URL. The request requires a unique `resourceId` in the path, formatted as `issuer ID.identifier`. The request body must include an `AddMessageRequest` instance. Successful requests return an updated `GenericClass` in JSON format, contained within a `resource` field. The process necessitates authorization via the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]