Method: loyaltyclass.update
อัปเดตคลาสโปรแกรมสะสมคะแนนที่อ้างอิงตามรหัสคลาสที่ระบุ
คำขอ HTTP
PUT https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass/{resourceId}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
resourceId |
string
ตัวระบุที่ไม่ซ้ำกันสำหรับชั้นเรียน รหัสนี้ต้องไม่ซ้ำกันในทุกชั้นเรียนจากผู้ออกบัตร ค่านี้ควรเป็นไปตามรูปแบบ issuer IDidentifierที่บัญชีแรกออกโดย Google และคุณเป็นผู้เลือกรายการหลัง ตัวระบุที่ไม่ซ้ำกันควรมีเฉพาะอักขระที่เป็นตัวอักษรและตัวเลขคละกัน, ".", "_" หรือ "-" เท่านั้น
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ LoyaltyClass
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ LoyaltyClass
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต 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"],[[["This document explains how to update a loyalty class using the Google Wallet API."],["You'll need to use a `PUT` request to the specified endpoint with the class ID."],["The request body should contain a `LoyaltyClass` object with the updated information."],["A successful response will return the updated `LoyaltyClass` object."],["You need the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."]]],["The core action is updating a loyalty class using its unique `resourceId`. This is done via a `PUT` HTTP request to the specified URL. The `resourceId`, a string, is defined as a path parameter and follows a specific format. The request body must contain a `LoyaltyClass` instance, and a successful response will also contain a `LoyaltyClass` instance. Authorization requires the `wallet_object.issuer` OAuth scope. The provided url follows the grpc syntax for transcoding.\n"]]