Skip to content

Latest commit

 

History

History
84 lines (55 loc) · 2.4 KB

File metadata and controls

84 lines (55 loc) · 2.4 KB

t3api.LicensesApi

All URIs are relative to https://api.trackandtrace.tools

Method HTTP request Description
v2_licenses_get GET /v2/licenses List of accessible licenses

v2_licenses_get

List[V2LicensesGet200ResponseInner] v2_licenses_get()

List of accessible licenses

A T3+ subscription is not required to use this endpoint

Example

  • Bearer (JWT) Authentication (BearerAuth):
import t3api
from t3api.models.v2_licenses_get200_response_inner import V2LicensesGet200ResponseInner
from t3api.rest import ApiException
from pprint import pprint

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

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (JWT): BearerAuth
configuration = t3api.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with t3api.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = t3api.LicensesApi(api_client)

    try:
        # List of accessible licenses
        api_response = api_instance.v2_licenses_get()
        print("The response of LicensesApi->v2_licenses_get:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling LicensesApi->v2_licenses_get: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

List[V2LicensesGet200ResponseInner]

Authorization

BearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 A list of accessible Metrc licenses -

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