Method: genericobject.addmessage
दिए गए ऑब्जेक्ट आईडी से रेफ़र किए गए जेनरिक ऑब्जेक्ट में मैसेज जोड़ता है.
एचटीटीपी अनुरोध
POST https://walletobjects.googleapis.com/walletobjects/v1/genericObject/{resourceId}/addMessage
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ पैरामीटर
पैरामीटर |
resourceId |
string
किसी ऑब्जेक्ट के लिए यूनीक आइडेंटिफ़ायर. यह आईडी, जारी करने वाले के सभी क्लास के लिए यूनीक होना चाहिए. यह वैल्यू, issuer ID फ़ॉर्मैट के हिसाब से होनी चाहिए.identifier, जहां पिछली इमेज को Google जारी करता है और बाद वाला कॉन्टेंट आप चुनता है. आपके यूनीक आइडेंटिफ़ायर में सिर्फ़ अक्षर और अंक, '.', '_' या '-' शामिल होने चाहिए.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में AddMessageRequest
का उदाहरण है.
जवाब का मुख्य भाग
ऑब्जेक्ट में, जारी करने वाले के नए मैसेज को जोड़ने का जवाब. इसमें अपडेट किया गया पूरा जेनेरिक ऑब्जेक्ट शामिल है.
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
JSON के काेड में दिखाना |
{
"resource": {
object (GenericObject )
}
} |
फ़ील्ड |
resource |
object (GenericObject )
अपडेट किया गया जेनेरिक Object संसाधन.
|
अनुमति के दायरे
नीचे दिए गए 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 generic object using its unique identifier."],["The request should be a `POST` request to the specified URL with the object ID as a path parameter and an `AddMessageRequest` in the body."],["Successful responses will contain the updated `GenericObject` resource in JSON format."],["Requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."]]],["This document details adding a message to a generic object via an HTTP POST request to `https://walletobjects.googleapis.com/walletobjects/v1/genericObject/{resourceId}/addMessage`. The `resourceId`, a unique object identifier, is a required path parameter. The request body contains an `AddMessageRequest`. A successful request returns an updated `GenericObject` in the response body, represented in JSON, including the `resource` field. This action requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]