Method: offerclass.addmessage
เพิ่มข้อความลงในคลาสข้อเสนอที่อ้างอิงโดยรหัสคลาสที่ระบุ
คำขอ HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/offerClass/{resourceId}/addMessage
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
resourceId |
string
ตัวระบุที่ไม่ซ้ำกันสำหรับชั้นเรียน รหัสนี้ต้องไม่ซ้ำกันในทุกชั้นเรียนจากผู้ออกบัตร ค่านี้ควรเป็นไปตามรูปแบบ issuer IDidentifier โดยที่รหัสแรกจะออกโดย Google และรหัสหลังจะเลือกโดยคุณ ตัวระบุที่ไม่ซ้ำกันควรประกอบด้วยอักขระที่เป็นตัวอักษรและตัวเลขคละกัน, '.', '_' หรือ "-" เท่านั้น
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ AddMessageRequest
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
การแสดง JSON |
{
"resource": {
object (OfferClass )
}
} |
ช่อง |
resource |
object (OfferClass )
ทรัพยากร OfferClass ที่อัปเดตแล้ว
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/wallet_object.issuer
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-21 UTC
[null,null,["อัปเดตล่าสุด 2024-11-21 UTC"],[[["Adds a message to an existing offer class using a POST request to a specified endpoint."],["Requires a unique offer class ID in the request URL and an `AddMessageRequest` object in the request body."],["If successful, the response provides the updated `OfferClass` object, including the new message."],["This action needs authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["This document details adding a message to an offer class using a `POST` request to `https://walletobjects.googleapis.com/walletobjects/v1/offerClass/{resourceId}/addMessage`. The `resourceId` path parameter, a unique class identifier, is required. The request body must include an `AddMessageRequest`, while a successful response will contain the updated `OfferClass` resource. The action requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]