Method: loyaltyclass.get
แสดงผลระดับโปรแกรมสะสมคะแนนที่มีรหัสระดับที่ระบุ
คำขอ HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass/{resourceId}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
resourceId |
string
ตัวระบุที่ไม่ซ้ำกันสำหรับชั้นเรียน รหัสนี้ต้องไม่ซ้ำกันในทุกชั้นเรียนจากผู้ออกบัตร ค่านี้ควรเป็นไปตามรูปแบบ issuer IDidentifier โดยที่รหัสแรกจะออกโดย Google และรหัสหลังจะเลือกโดยคุณ ตัวระบุที่ไม่ซ้ำกันควรประกอบด้วยอักขระที่เป็นตัวอักษรและตัวเลขคละกัน, '.', '_' หรือ "-" เท่านั้น
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ 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"],[[["Retrieves a loyalty class using its unique ID."],["The request requires an empty body and uses the `GET` HTTP method."],["The response provides details of the loyalty class if successful."],["Authorization is necessary with the `https://www.googleapis.com/auth/wallet_object.issuer` scope."],["The loyalty class ID format is `issuer ID.identifier` with specific character restrictions."]]],["The core content describes retrieving a loyalty class using a `GET` request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass/{resourceId}`. The `{resourceId}` path parameter, a unique string identifier (issuer ID.identifier), is required. The request body must be empty. A successful response returns a `LoyaltyClass` object. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]