Method: flightclass.addmessage
दिए गए क्लास आईडी से रेफ़र की गई फ़्लाइट क्लास में मैसेज जोड़ता है.
एचटीटीपी अनुरोध
POST https://walletobjects.googleapis.com/walletobjects/v1/flightClass/{resourceId}/addMessage
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
resourceId |
string
क्लास के लिए यूनीक आइडेंटिफ़ायर. यह आईडी, जारी करने वाले बैंक की सभी क्लास के लिए यूनीक होना चाहिए. यह वैल्यू, issuer ID फ़ॉर्मैट के हिसाब से होनी चाहिए.identifier, जहां पिछली इमेज को Google जारी करता है और बाद वाला कॉन्टेंट आप चुनता है. आपके यूनीक आइडेंटिफ़ायर में सिर्फ़ अक्षर और अंक, '.', '_' या '-' होने चाहिए.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में AddMessageRequest
का उदाहरण है.
जवाब का मुख्य भाग
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
JSON के काेड में दिखाना |
{
"resource": {
object (FlightClass )
}
} |
फ़ील्ड |
resource |
object (FlightClass )
अपडेट किया गया FlightClass संसाधन.
|
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/wallet_object.issuer
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-11-07 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-11-07 (UTC) को अपडेट किया गया."],[[["Adds a message to an existing flight class using the provided class ID."],["The request body should contain an `AddMessageRequest` object and uses the `POST` method."],["If successful, the response returns the updated `FlightClass` object."],["Requires `wallet_object.issuer` authorization scope for access."],["Utilizes gRPC Transcoding for the HTTP request URL structure."]]],["This document outlines the process for adding a message to a flight class using a POST request to the `https://walletobjects.googleapis.com/walletobjects/v1/flightClass/{resourceId}/addMessage` endpoint. The `resourceId` path parameter, a unique identifier in the format `\u003cissuer ID\u003e.\u003cidentifier\u003e`, specifies the target class. The request body utilizes the `AddMessageRequest`. Upon success, the response includes the updated `FlightClass` resource, necessitating `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope authorization.\n"]]