Method: flightobject.addmessage
दिए गए ऑब्जेक्ट आईडी से रेफ़र किए गए फ़्लाइट ऑब्जेक्ट में मैसेज जोड़ता है.
एचटीटीपी अनुरोध
POST https://walletobjects.googleapis.com/walletobjects/v1/flightObject/{resourceId}/addMessage
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ पैरामीटर
पैरामीटर |
resourceId |
string
किसी ऑब्जेक्ट के लिए यूनीक आइडेंटिफ़ायर. यह आईडी, जारी करने वाले के सभी ऑब्जेक्ट के लिए अलग होना चाहिए. यह वैल्यू, issuer ID फ़ॉर्मैट के हिसाब से होनी चाहिए.identifier, जहां पिछली इमेज को Google जारी करता है और बाद वाला कॉन्टेंट आप चुनता है. आपके यूनीक आइडेंटिफ़ायर में सिर्फ़ अक्षर और अंक, '.', '_' या '-' शामिल होने चाहिए.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में AddMessageRequest
का उदाहरण है.
जवाब का मुख्य भाग
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
JSON के काेड में दिखाना |
{
"resource": {
object (FlightObject )
}
} |
फ़ील्ड |
resource |
object (FlightObject )
अपडेट किया गया FlightObject संसाधन.
|
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/wallet_object.issuer
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-03-13 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-03-13 (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"]]