Skip to content

Latest commit

 

History

History
83 lines (55 loc) · 2.55 KB

File metadata and controls

83 lines (55 loc) · 2.55 KB

workplace_client.AvailablePackagesApi

All URIs are relative to https://workplace-console.truehost.cloud/api

Method HTTP request Description
available_packages_list GET /available-packages/ Get available subscriptions

available_packages_list

List[SubscriptionDetails] available_packages_list()

Get available subscriptions

Get available subscriptions

Example

  • Bearer (JWT) Authentication (BearerAuth):
import workplace_client
from workplace_client.models.subscription_details import SubscriptionDetails
from workplace_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://workplace-console.truehost.cloud/api
# See configuration.py for a list of all supported configuration parameters.
configuration = workplace_client.Configuration(
    host = "https://workplace-console.truehost.cloud/api"
)

# 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 = workplace_client.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

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

    try:
        # Get available subscriptions
        api_response = api_instance.available_packages_list()
        print("The response of AvailablePackagesApi->available_packages_list:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling AvailablePackagesApi->available_packages_list: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

List[SubscriptionDetails]

Authorization

BearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 List of available subscription packages -

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