Method: loyaltyobject.addmessage
เพิ่มข้อความลงในออบเจ็กต์โปรแกรมสะสมคะแนนที่อ้างอิงโดยรหัสออบเจ็กต์ที่ระบุ
คำขอ HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/loyaltyObject/{resourceId}/addMessage
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
resourceId |
string
ตัวระบุที่ไม่ซ้ำกันสำหรับออบเจ็กต์ รหัสนี้ต้องไม่ซ้ำกันในทุกออบเจ็กต์จากผู้ออกบัตร ค่านี้ควรเป็นไปตามรูปแบบ issuer IDidentifier โดยที่รหัสแรกจะออกโดย Google และรหัสหลังจะเลือกโดยคุณ ตัวระบุที่ไม่ซ้ำกันควรประกอบด้วยอักขระที่เป็นตัวอักษรและตัวเลขคละกัน, '.', '_' หรือ "-" เท่านั้น
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ AddMessageRequest
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
ช่อง |
resource |
object (LoyaltyObject )
ทรัพยากร LoyaltyObject ที่อัปเดตแล้ว
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต 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 loyalty object using its object ID."],["The request requires a POST method and uses the object ID as a path parameter."],["The request body should contain an `AddMessageRequest` and the response will contain the updated `LoyaltyObject`."],["Authorization is required using the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["The core action is adding a message to a loyalty object using a `POST` request to the specified URL, incorporating gRPC Transcoding syntax. The request requires a unique `resourceId` (issuer ID.identifier) in the path. The request body utilizes the `AddMessageRequest` instance. Upon success, the response returns an updated `LoyaltyObject` resource, represented in JSON format, under the \"resource\" field. The operation requires `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]