Method: giftcardobject.addmessage
הפונקציה מוסיפה הודעה לאובייקט של כרטיס המתנה שאליו מפנה מזהה האובייקט הנתון.
בקשת HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{resourceId}/addMessage
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
resourceId |
string
המזהה הייחודי של האובייקט. המזהה הזה חייב להיות ייחודי בכל האובייקטים של המנפיק. הערך צריך להיות בפורמט issuer ID.identifier כאשר הראשון הונפק על ידי Google והאחרון נבחר על ידך. המזהה הייחודי יכול לכלול רק תווים אלפאנומריים, '.', '_' או '-'.
|
גוף הבקשה
גוף הבקשה מכיל מופע של AddMessageRequest
.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכיל נתונים במבנה הבא:
שדות |
resource |
object (GiftCardObject )
המשאב המעודכן של GIFCardObject.
|
היקפי ההרשאות
נדרש היקף ההרשאות הבא של 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)."],[[["Adds a message to an existing gift card object using the object ID."],["The request body should contain an AddMessageRequest as defined in the provided documentation."],["A successful response returns the updated GiftCardObject resource."],["This functionality requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."]]],["This content outlines the process of adding a message to a gift card object. It uses a `POST` HTTP request to `https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{resourceId}/addMessage`, requiring a unique `resourceId` path parameter. The request body should be an `AddMessageRequest`, and a successful response returns an updated `GiftCardObject`. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope. The `resourceId` is constructed from the issuer's ID and the user's identifier.\n"]]