Method: transitclass.get
दिए गए क्लास आईडी के साथ, बस, मेट्रो वगैरह की क्लास दिखाता है.
एचटीटीपी अनुरोध
GET https://walletobjects.googleapis.com/walletobjects/v1/transitClass/{resourceId}
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ पैरामीटर
पैरामीटर |
resourceId |
string
क्लास का यूनीक आइडेंटिफ़ायर. यह आईडी, जारी करने वाले के सभी क्लास के लिए यूनीक होना चाहिए. यह वैल्यू issuer ID फ़ॉर्मैट में होनी चाहिए.identifier, जहां पहला कोड Google जारी करता है और दूसरा कोड आप चुनते हैं. आपके यूनीक आइडेंटिफ़ायर में सिर्फ़ अक्षर और अंक, '.', '_' या '-' शामिल होने चाहिए.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य हिस्सा
कामयाब रहने पर, जवाब के मुख्य हिस्से में TransitClass
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए 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) को अपडेट किया गया."],[[["Retrieves a transit class using its unique identifier."],["The class ID should follow a specific format: issuer ID + your unique identifier."],["Request body should be empty, and a successful response returns the TransitClass object."],["Requires authorization with the `wallet_object.issuer` scope."]]],["The core content describes retrieving a transit class using its unique ID. A `GET` request is sent to a specified URL, formatted with gRPC Transcoding syntax. The `resourceId` path parameter, a unique string composed of issuer ID and an identifier, is required. The request body must be empty. A successful response returns a `TransitClass` object. This action requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]