Skip to content

Latest commit

 

History

History
298 lines (207 loc) · 8.7 KB

SubscriptionServiceApi.md

File metadata and controls

298 lines (207 loc) · 8.7 KB

madana_apiclient.SubscriptionServiceApi

All URIs are relative to http://api.madana.io/rest

Method HTTP request Description
add_free_subscription POST /subscriptions/saas/free
add_pass_trial_subscription POST /subscriptions/paas/trial
get_application GET /subscriptions/active
get_checkout_session GET /subscriptions/{productname}/checkout
get_checkout_session2 POST /subscriptions/{productname}/{newplan}

add_free_subscription

file_type add_free_subscription()

Example

import time
import madana_apiclient
from madana_apiclient.api import subscription_service_api
from pprint import pprint
# Defining the host is optional and defaults to http://api.madana.io/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = madana_apiclient.Configuration(
    host = "http://api.madana.io/rest"
)


# Enter a context with an instance of the API client
with madana_apiclient.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = subscription_service_api.SubscriptionServiceApi(api_client)

    # example, this endpoint has no required or optional parameters
    try:
        api_response = api_instance.add_free_subscription()
        pprint(api_response)
    except madana_apiclient.ApiException as e:
        print("Exception when calling SubscriptionServiceApi->add_free_subscription: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

file_type

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
201 -

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

add_pass_trial_subscription

file_type add_pass_trial_subscription()

Example

import time
import madana_apiclient
from madana_apiclient.api import subscription_service_api
from pprint import pprint
# Defining the host is optional and defaults to http://api.madana.io/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = madana_apiclient.Configuration(
    host = "http://api.madana.io/rest"
)


# Enter a context with an instance of the API client
with madana_apiclient.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = subscription_service_api.SubscriptionServiceApi(api_client)

    # example, this endpoint has no required or optional parameters
    try:
        api_response = api_instance.add_pass_trial_subscription()
        pprint(api_response)
    except madana_apiclient.ApiException as e:
        print("Exception when calling SubscriptionServiceApi->add_pass_trial_subscription: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

file_type

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
201 -

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

get_application

file_type get_application()

Example

import time
import madana_apiclient
from madana_apiclient.api import subscription_service_api
from pprint import pprint
# Defining the host is optional and defaults to http://api.madana.io/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = madana_apiclient.Configuration(
    host = "http://api.madana.io/rest"
)


# Enter a context with an instance of the API client
with madana_apiclient.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = subscription_service_api.SubscriptionServiceApi(api_client)

    # example, this endpoint has no required or optional parameters
    try:
        api_response = api_instance.get_application()
        pprint(api_response)
    except madana_apiclient.ApiException as e:
        print("Exception when calling SubscriptionServiceApi->get_application: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

file_type

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 -

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

get_checkout_session

file_type get_checkout_session(productname)

Example

import time
import madana_apiclient
from madana_apiclient.api import subscription_service_api
from pprint import pprint
# Defining the host is optional and defaults to http://api.madana.io/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = madana_apiclient.Configuration(
    host = "http://api.madana.io/rest"
)


# Enter a context with an instance of the API client
with madana_apiclient.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = subscription_service_api.SubscriptionServiceApi(api_client)
    productname = "productname_example" # str | 

    # example passing only required values which don't have defaults set
    try:
        api_response = api_instance.get_checkout_session(productname)
        pprint(api_response)
    except madana_apiclient.ApiException as e:
        print("Exception when calling SubscriptionServiceApi->get_checkout_session: %s\n" % e)

Parameters

Name Type Description Notes
productname str

Return type

file_type

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 -

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

get_checkout_session2

file_type get_checkout_session2(newplan, productname)

Example

import time
import madana_apiclient
from madana_apiclient.api import subscription_service_api
from pprint import pprint
# Defining the host is optional and defaults to http://api.madana.io/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = madana_apiclient.Configuration(
    host = "http://api.madana.io/rest"
)


# Enter a context with an instance of the API client
with madana_apiclient.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = subscription_service_api.SubscriptionServiceApi(api_client)
    newplan = "newplan_example" # str | 
    productname = "productname_example" # str | 

    # example passing only required values which don't have defaults set
    try:
        api_response = api_instance.get_checkout_session2(newplan, productname)
        pprint(api_response)
    except madana_apiclient.ApiException as e:
        print("Exception when calling SubscriptionServiceApi->get_checkout_session2: %s\n" % e)

Parameters

Name Type Description Notes
newplan str
productname str

Return type

file_type

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
201 -

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