Skip to content

Latest commit

 

History

History
80 lines (52 loc) · 2.96 KB

File metadata and controls

80 lines (52 loc) · 2.96 KB

openapi_client.GetTaskStatusApi

All URIs are relative to https://api.mastercard.com/mdes

Method HTTP request Description
get_task_status POST /digitization/static/1/0/getTaskStatus Used to check the status of any asynchronous task that was previously requested.

get_task_status

GetTaskStatusResponseSchema get_task_status(get_task_status_request_schema=get_task_status_request_schema)

Used to check the status of any asynchronous task that was previously requested.

Used to check the status of any asynchronous task that was previously requested.

Example

import openapi_client
from openapi_client.models.get_task_status_request_schema import GetTaskStatusRequestSchema
from openapi_client.models.get_task_status_response_schema import GetTaskStatusResponseSchema
from openapi_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.mastercard.com/mdes
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
    host = "https://api.mastercard.com/mdes"
)


# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = openapi_client.GetTaskStatusApi(api_client)
    get_task_status_request_schema = openapi_client.GetTaskStatusRequestSchema() # GetTaskStatusRequestSchema | Contains the details of the request message.  (optional)

    try:
        # Used to check the status of any asynchronous task that was previously requested.
        api_response = api_instance.get_task_status(get_task_status_request_schema=get_task_status_request_schema)
        print("The response of GetTaskStatusApi->get_task_status:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling GetTaskStatusApi->get_task_status: %s\n" % e)

Parameters

Name Type Description Notes
get_task_status_request_schema GetTaskStatusRequestSchema Contains the details of the request message. [optional]

Return type

GetTaskStatusResponseSchema

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Contains the details of the response message. -
401 Example gateway error response -
500 Example application error response -

[Back to top] [Back to API list] [Back to Model list] [Back to README]