Method: genericclass.get
दिए गए क्लास आईडी के साथ जेनरिक क्लास दिखाता है.
एचटीटीपी अनुरोध
GET https://walletobjects.googleapis.com/walletobjects/v1/genericClass/{resourceId}
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
resourceId |
string
क्लास का यूनीक आइडेंटिफ़ायर. यह आईडी, जारी करने वाले के सभी क्लास के लिए यूनीक होना चाहिए. यह वैल्यू issuerID.identifier फ़ॉर्मैट के हिसाब से होनी चाहिए. इसमें issuerID को Google जारी करता है और identifier को चुनता है. यूनीक आइडेंटिफ़ायर में सिर्फ़ अक्षर और अंक, . , _ या - शामिल हो सकते हैं.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य हिस्सा
कामयाब रहने पर, जवाब के मुख्य हिस्से में GenericClass
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए 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-04 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-11-04 (UTC) को अपडेट किया गया."],[[["Retrieves a generic class with a specific class ID using a GET request."],["The class ID must be unique across all classes from an issuer and follow a specific format."],["The request body should be empty, and the response includes the GenericClass object if successful."],["Requires authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["The core content describes retrieving a generic class using its ID. A `GET` request is made to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/genericClass/{resourceId}`, utilizing gRPC Transcoding. The `resourceId` path parameter, formatted as `issuerID.identifier`, uniquely identifies the class. The request body must be empty. A successful request returns a `GenericClass` instance in the response body. Access requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]