Method: flightobject.addmessage
הפונקציה מוסיפה הודעה לאובייקט הטיסה שאליו מפנה מזהה האובייקט הנתון.
בקשת HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/flightObject/{resourceId}/addMessage
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
resourceId |
string
המזהה הייחודי של אובייקט. המזהה הזה חייב להיות ייחודי בכל האובייקטים של מנפיק. הערך צריך להיות בפורמט issuer ID.identifier כאשר הראשון הונפק על ידי Google והאחרון נבחר על ידך. המזהה הייחודי יכול לכלול רק תווים אלפאנומריים, '.', '_' או '-'.
|
גוף הבקשה
גוף הבקשה מכיל מופע של AddMessageRequest
.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל נתונים במבנה הבא:
שדות |
resource |
object (FlightObject )
משאב FlightObject המעודכן.
|
היקפי ההרשאות
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/wallet_object.issuer
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-07 (שעון UTC).
[null,null,["עדכון אחרון: 2024-11-07 (שעון UTC)."],[[["Adds a message to an existing flight object using the object's unique identifier."],["Requires a POST request to the specified endpoint with the AddMessageRequest in the request body."],["Upon successful execution, the API responds with the updated FlightObject resource."],["The operation necessitates the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."],["Utilizes path parameters to identify the specific flight object to which the message will be added."]]],["This document details adding a message to a flight object using a `POST` request to a specified URL. The URL includes a `resourceId` path parameter, a unique identifier for the flight object. The request body contains an `AddMessageRequest` instance. A successful response returns an updated `FlightObject`, represented in JSON, with a \"resource\" field. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]