Method: loyaltyclass.addmessage
הוספת הודעה לקבוצת הלקוחות הנאמנים שמופיעה במזהה הקבוצה הנתון.
בקשת HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/loyaltyClass/{resourceId}/addMessage
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
resourceId |
string
המזהה הייחודי של הכיתה. המזהה הזה חייב להיות ייחודי בכל הכיתות של מנפיק. הערך צריך להיות בפורמט issuer ID.identifier, כאשר המזהה הראשון מונפק על ידי Google והשני נבחר על ידכם. המזהה הייחודי צריך לכלול רק תווים אלפאנומריים, נקודה (.), קו תחתון (_) או מקף (-).
|
גוף הבקשה
גוף הבקשה מכיל מופע של AddMessageRequest
.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל נתונים במבנה הבא:
שדות |
resource |
object (LoyaltyClass )
המשאב המעודכן LoyaltyClass.
|
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/wallet_object.issuer
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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"]]