Method: loyaltyclass.addmessage
เพิ่มข้อความลงในคลาสโปรแกรมสะสมคะแนนที่อ้างอิงโดยรหัสคลาสที่ระบุ
คำขอ HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass/{resourceId}/addMessage
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
resourceId |
string
ตัวระบุที่ไม่ซ้ำกันสำหรับชั้นเรียน รหัสนี้ต้องไม่ซ้ำกันในทุกชั้นเรียนจากผู้ออกบัตร ค่านี้ควรเป็นไปตามรูปแบบ issuer IDidentifier โดยที่รหัสแรกจะออกโดย Google และรหัสหลังจะเลือกโดยคุณ ตัวระบุที่ไม่ซ้ำกันควรประกอบด้วยอักขระที่เป็นตัวอักษรและตัวเลขคละกัน, '.', '_' หรือ "-" เท่านั้น
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ AddMessageRequest
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
ช่อง |
resource |
object (LoyaltyClass )
ทรัพยากร LoyaltyClass ที่อัปเดตแล้ว
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต 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 class identified by its unique ID."],["The request requires an `AddMessageRequest` object in the body and uses the `POST` method."],["A successful response returns the updated `LoyaltyClass` object."],["Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["A message is added to a loyalty class using a POST request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass/{resourceId}/addMessage`. The `resourceId` path parameter uniquely identifies the class. The request body requires an `AddMessageRequest` instance. A successful request returns a JSON object containing the updated `LoyaltyClass` resource. This action requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization.\n"]]