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} |
file_type add_free_subscription()
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)
This endpoint does not need any parameter.
file_type
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
file_type add_pass_trial_subscription()
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)
This endpoint does not need any parameter.
file_type
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
file_type get_application()
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)
This endpoint does not need any parameter.
file_type
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
file_type get_checkout_session(productname)
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)
Name | Type | Description | Notes |
---|---|---|---|
productname | str |
file_type
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
file_type get_checkout_session2(newplan, productname)
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)
Name | Type | Description | Notes |
---|---|---|---|
newplan | str | ||
productname | str |
file_type
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]