Skip to content

Latest commit

 

History

History
628 lines (424 loc) · 22.5 KB

File metadata and controls

628 lines (424 loc) · 22.5 KB

t3api.LabelsApi

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

Method HTTP request Description
v2_files_labels_content_data_packages_active_post POST /v2/files/labels/content-data/packages/active For a given list of active packages, returns the needed ContentDataList to render the labels.
v2_files_labels_content_data_packages_intransit_post POST /v2/files/labels/content-data/packages/intransit For a given list of in transit packages, returns the needed ContentDataList to render the labels.
v2_files_labels_generate_post POST /v2/files/labels/generate Generate a PDF of labels.
v2_files_labels_label_content_layouts_get GET /v2/files/labels/label-content-layouts Returns a list of label content layouts
v2_files_labels_label_template_layouts_get GET /v2/files/labels/label-template-layouts Returns a list of label template layouts
v2_labels_generate_post POST /v2/labels/generate Generate a PDF of labels.
v2_labels_label_content_layouts_get GET /v2/labels/label-content-layouts Returns a list of label content layouts
v2_labels_label_template_layouts_get GET /v2/labels/label-template-layouts Returns a list of label template layouts

v2_files_labels_content_data_packages_active_post

V2FilesLabelsContentDataPackagesActivePost200Response v2_files_labels_content_data_packages_active_post(v2_files_labels_content_data_packages_active_post_request)

For a given list of active packages, returns the needed ContentDataList to render the labels.

Layout IDs can be found by querying the label template layout and label content layout endpoints.

Example

  • Bearer (JWT) Authentication (BearerAuth):
import t3api
from t3api.models.v2_files_labels_content_data_packages_active_post200_response import V2FilesLabelsContentDataPackagesActivePost200Response
from t3api.models.v2_files_labels_content_data_packages_active_post_request import V2FilesLabelsContentDataPackagesActivePostRequest
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.LabelsApi(api_client)
    v2_files_labels_content_data_packages_active_post_request = t3api.V2FilesLabelsContentDataPackagesActivePostRequest() # V2FilesLabelsContentDataPackagesActivePostRequest | 

    try:
        # For a given list of active packages, returns the needed ContentDataList to render the labels.
        api_response = api_instance.v2_files_labels_content_data_packages_active_post(v2_files_labels_content_data_packages_active_post_request)
        print("The response of LabelsApi->v2_files_labels_content_data_packages_active_post:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling LabelsApi->v2_files_labels_content_data_packages_active_post: %s\n" % e)

Parameters

Name Type Description Notes
v2_files_labels_content_data_packages_active_post_request V2FilesLabelsContentDataPackagesActivePostRequest

Return type

V2FilesLabelsContentDataPackagesActivePost200Response

Authorization

BearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 List of LabelContentData objects compiled from the packages and template -

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

v2_files_labels_content_data_packages_intransit_post

V2FilesLabelsContentDataPackagesActivePost200Response v2_files_labels_content_data_packages_intransit_post(v2_files_labels_content_data_packages_active_post_request)

For a given list of in transit packages, returns the needed ContentDataList to render the labels.

Layout IDs can be found by querying the label template layout and label content layout endpoints.

Example

  • Bearer (JWT) Authentication (BearerAuth):
import t3api
from t3api.models.v2_files_labels_content_data_packages_active_post200_response import V2FilesLabelsContentDataPackagesActivePost200Response
from t3api.models.v2_files_labels_content_data_packages_active_post_request import V2FilesLabelsContentDataPackagesActivePostRequest
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.LabelsApi(api_client)
    v2_files_labels_content_data_packages_active_post_request = t3api.V2FilesLabelsContentDataPackagesActivePostRequest() # V2FilesLabelsContentDataPackagesActivePostRequest | 

    try:
        # For a given list of in transit packages, returns the needed ContentDataList to render the labels.
        api_response = api_instance.v2_files_labels_content_data_packages_intransit_post(v2_files_labels_content_data_packages_active_post_request)
        print("The response of LabelsApi->v2_files_labels_content_data_packages_intransit_post:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling LabelsApi->v2_files_labels_content_data_packages_intransit_post: %s\n" % e)

Parameters

Name Type Description Notes
v2_files_labels_content_data_packages_active_post_request V2FilesLabelsContentDataPackagesActivePostRequest

Return type

V2FilesLabelsContentDataPackagesActivePost200Response

Authorization

BearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 List of LabelContentData objects compiled from the packages and template -

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

v2_files_labels_generate_post

bytearray v2_files_labels_generate_post(v2_files_labels_generate_post_request)

Generate a PDF of labels.

Layout IDs can be found by querying the label template layout and label content layout endpoints.

T3 Free users can only generate watermarked labels. Watermarks can be removed with a T3+ subscription.

Example

  • Bearer (JWT) Authentication (BearerAuth):
import t3api
from t3api.models.v2_files_labels_generate_post_request import V2FilesLabelsGeneratePostRequest
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.LabelsApi(api_client)
    v2_files_labels_generate_post_request = t3api.V2FilesLabelsGeneratePostRequest() # V2FilesLabelsGeneratePostRequest | 

    try:
        # Generate a PDF of labels.
        api_response = api_instance.v2_files_labels_generate_post(v2_files_labels_generate_post_request)
        print("The response of LabelsApi->v2_files_labels_generate_post:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling LabelsApi->v2_files_labels_generate_post: %s\n" % e)

Parameters

Name Type Description Notes
v2_files_labels_generate_post_request V2FilesLabelsGeneratePostRequest

Return type

bytearray

Authorization

BearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 PDF of the labels -

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

v2_files_labels_label_content_layouts_get

V2FilesLabelsLabelContentLayoutsGet200Response v2_files_labels_label_content_layouts_get()

Returns a list of label content layouts

Example

  • Bearer (JWT) Authentication (BearerAuth):
import t3api
from t3api.models.v2_files_labels_label_content_layouts_get200_response import V2FilesLabelsLabelContentLayoutsGet200Response
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.LabelsApi(api_client)

    try:
        # Returns a list of label content layouts
        api_response = api_instance.v2_files_labels_label_content_layouts_get()
        print("The response of LabelsApi->v2_files_labels_label_content_layouts_get:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling LabelsApi->v2_files_labels_label_content_layouts_get: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

V2FilesLabelsLabelContentLayoutsGet200Response

Authorization

BearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 A list of label content layouts -

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

v2_files_labels_label_template_layouts_get

V2FilesLabelsLabelTemplateLayoutsGet200Response v2_files_labels_label_template_layouts_get()

Returns a list of label template layouts

Example

  • Bearer (JWT) Authentication (BearerAuth):
import t3api
from t3api.models.v2_files_labels_label_template_layouts_get200_response import V2FilesLabelsLabelTemplateLayoutsGet200Response
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.LabelsApi(api_client)

    try:
        # Returns a list of label template layouts
        api_response = api_instance.v2_files_labels_label_template_layouts_get()
        print("The response of LabelsApi->v2_files_labels_label_template_layouts_get:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling LabelsApi->v2_files_labels_label_template_layouts_get: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

V2FilesLabelsLabelTemplateLayoutsGet200Response

Authorization

BearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 A list of label template layouts -

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

v2_labels_generate_post

bytearray v2_labels_generate_post(v2_labels_generate_post_request)

Generate a PDF of labels.

Layout IDs can be found by querying the label template layout and label content layout endpoints.

T3 Free users can only generate watermarked labels. Watermarks can be removed with a T3+ subscription.

Example

  • Bearer (JWT) Authentication (BearerAuth):
import t3api
from t3api.models.v2_labels_generate_post_request import V2LabelsGeneratePostRequest
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.LabelsApi(api_client)
    v2_labels_generate_post_request = t3api.V2LabelsGeneratePostRequest() # V2LabelsGeneratePostRequest | 

    try:
        # Generate a PDF of labels.
        api_response = api_instance.v2_labels_generate_post(v2_labels_generate_post_request)
        print("The response of LabelsApi->v2_labels_generate_post:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling LabelsApi->v2_labels_generate_post: %s\n" % e)

Parameters

Name Type Description Notes
v2_labels_generate_post_request V2LabelsGeneratePostRequest

Return type

bytearray

Authorization

BearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 PDF of the labels -

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

v2_labels_label_content_layouts_get

V2FilesLabelsLabelContentLayoutsGet200Response v2_labels_label_content_layouts_get()

Returns a list of label content layouts

Example

  • Bearer (JWT) Authentication (BearerAuth):
import t3api
from t3api.models.v2_files_labels_label_content_layouts_get200_response import V2FilesLabelsLabelContentLayoutsGet200Response
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.LabelsApi(api_client)

    try:
        # Returns a list of label content layouts
        api_response = api_instance.v2_labels_label_content_layouts_get()
        print("The response of LabelsApi->v2_labels_label_content_layouts_get:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling LabelsApi->v2_labels_label_content_layouts_get: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

V2FilesLabelsLabelContentLayoutsGet200Response

Authorization

BearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 A list of label content layouts -

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

v2_labels_label_template_layouts_get

V2FilesLabelsLabelTemplateLayoutsGet200Response v2_labels_label_template_layouts_get()

Returns a list of label template layouts

Example

  • Bearer (JWT) Authentication (BearerAuth):
import t3api
from t3api.models.v2_files_labels_label_template_layouts_get200_response import V2FilesLabelsLabelTemplateLayoutsGet200Response
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.LabelsApi(api_client)

    try:
        # Returns a list of label template layouts
        api_response = api_instance.v2_labels_label_template_layouts_get()
        print("The response of LabelsApi->v2_labels_label_template_layouts_get:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling LabelsApi->v2_labels_label_template_layouts_get: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

V2FilesLabelsLabelTemplateLayoutsGet200Response

Authorization

BearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 A list of label template layouts -

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