Method: loyaltyobject.update
עדכון אובייקט הנאמנות שמזהה האובייקט הנתון מפנה אליו.
בקשת HTTP
PUT https://walletobjects.googleapis.com/walletobjects/v1/loyaltyObject/{resourceId}
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
resourceId |
string
המזהה הייחודי של אובייקט. המזהה הזה חייב להיות ייחודי בכל האובייקטים של המנפיק. הערך הזה צריך להיות בפורמט issuer ID.identifier שבו הראשון הונפק על ידי Google והאחרון נבחר על ידך. המזהה הייחודי שלך יכול לכלול רק תווים אלפאנומריים, '.', '_' או '-'.
|
גוף הבקשה
גוף הבקשה מכיל מופע של LoyaltyObject
.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה מכיל מופע של LoyaltyObject
.
היקפי הרשאות
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/wallet_object.issuer
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-03-13 (שעון UTC).
[null,null,["עדכון אחרון: 2025-03-13 (שעון UTC)."],[[["This document explains how to update a loyalty object using the Google Wallet API."],["You'll need to use a `PUT` request to the specified URL, including the object's unique identifier."],["The request body should contain the updated loyalty object data in JSON format according to the `LoyaltyObject` schema."],["A successful response will return the updated `LoyaltyObject`."],["You must have the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope to authorize this request."]]],["This describes how to update a loyalty object using a PUT request. The request URL is `https://walletobjects.googleapis.com/walletobjects/v1/loyaltyObject/{resourceId}`, where `resourceId` uniquely identifies the object. The request body must contain a `LoyaltyObject` instance. The response body will also be a `LoyaltyObject` upon success. This action requires `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization. The `resourceId` should follow the format \u003cvar\u003eissuer ID\u003c/var\u003e.\u003cvar\u003eidentifier\u003c/var\u003e.\n"]]