Method: transitobject.get
दिए गए ऑब्जेक्ट आईडी के साथ, ट्रांज़िट ऑब्जेक्ट दिखाता है.
एचटीटीपी अनुरोध
GET https://walletobjects.googleapis.com/walletobjects/v1/transitObject/{resourceId}
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
resourceId |
string
किसी ऑब्जेक्ट के लिए यूनीक आइडेंटिफ़ायर. यह आईडी, जारी करने वाले के सभी ऑब्जेक्ट में यूनीक होना चाहिए. यह वैल्यू issuer ID फ़ॉर्मैट में होनी चाहिए.identifier, जहां पहला कोड Google जारी करता है और दूसरा कोड आप चुनते हैं. आपके यूनीक आइडेंटिफ़ायर में सिर्फ़ अक्षर और अंक, '.', '_' या '-' होने चाहिए.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य हिस्सा
कामयाब रहने पर, जवाब के मुख्य हिस्से में TransitObject
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए 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 specific transit object using its unique identifier."],["The request requires an empty body and uses a GET HTTP method with the object's resource ID in the URL path."],["A successful response provides the details of the requested transit object."],["Authorization is necessary using the `wallet_object.issuer` scope."]]],["This document outlines the process for retrieving a transit object using its unique ID. A `GET` request is sent to the specified URL, including the `resourceId` as a path parameter. The `resourceId` is a string following the format \"issuer ID.identifier\". The request body must be empty. A successful response returns a `TransitObject` instance. This action requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization.\n"]]