Skip to content

Latest commit

 

History

History
278 lines (194 loc) · 8.28 KB

File metadata and controls

278 lines (194 loc) · 8.28 KB

artikcloud.MonetizationApi

All URIs are relative to https://api.artik.cloud/v1.1

Method HTTP request Description
create_pricing_tiers POST /pricing/devicetypes/{dtid}/pricingtiers Define devicetype's pricing tiers.
get_pricing_tiers GET /pricing/devices/{did}/pricingtiers Get a device's pricing tiers
get_the__pricing_tiers GET /pricing/devicetypes/{dtid}/pricingtiers Get devicetype's pricing tiers.
get_upgrade_path GET /pricing/devices/{did}/revenueshare/upgradepath Get upgrade path
set_pricing_tier PUT /pricing/devices/{did}/pricingtiers Set a device's pricing tier

create_pricing_tiers

DeviceTypePricingTier create_pricing_tiers(dtid, pricing_tier_info)

Define devicetype's pricing tiers.

Define devicetype's pricing tiers.

Example

from __future__ import print_statement
import time
import artikcloud
from artikcloud.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: artikcloud_oauth
artikcloud.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = artikcloud.MonetizationApi()
dtid = 'dtid_example' # str | DeviceType ID
pricing_tier_info = artikcloud.DeviceTypePricingTier() # DeviceTypePricingTier | Pricing tier info

try: 
    # Define devicetype's pricing tiers.
    api_response = api_instance.create_pricing_tiers(dtid, pricing_tier_info)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MonetizationApi->create_pricing_tiers: %s\n" % e)

Parameters

Name Type Description Notes
dtid str DeviceType ID
pricing_tier_info DeviceTypePricingTier Pricing tier info

Return type

DeviceTypePricingTier

Authorization

artikcloud_oauth

HTTP request headers

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

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

get_pricing_tiers

DevicePricingTiersEnvelope get_pricing_tiers(did, active=active)

Get a device's pricing tiers

Get a device's pricing tiers

Example

from __future__ import print_statement
import time
import artikcloud
from artikcloud.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: artikcloud_oauth
artikcloud.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = artikcloud.MonetizationApi()
did = 'did_example' # str | Device ID
active = true # bool | Filter by active (optional)

try: 
    # Get a device's pricing tiers
    api_response = api_instance.get_pricing_tiers(did, active=active)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MonetizationApi->get_pricing_tiers: %s\n" % e)

Parameters

Name Type Description Notes
did str Device ID
active bool Filter by active [optional]

Return type

DevicePricingTiersEnvelope

Authorization

artikcloud_oauth

HTTP request headers

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

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

get_the__pricing_tiers

DeviceTypePricingTiersEnvelope get_the__pricing_tiers(dtid, version)

Get devicetype's pricing tiers.

Get devicetype's pricing tiers.

Example

from __future__ import print_statement
import time
import artikcloud
from artikcloud.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: artikcloud_oauth
artikcloud.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = artikcloud.MonetizationApi()
dtid = 'dtid_example' # str | DeviceType ID
version = 56 # int | Version

try: 
    # Get devicetype's pricing tiers.
    api_response = api_instance.get_the__pricing_tiers(dtid, version)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MonetizationApi->get_the__pricing_tiers: %s\n" % e)

Parameters

Name Type Description Notes
dtid str DeviceType ID
version int Version

Return type

DeviceTypePricingTiersEnvelope

Authorization

artikcloud_oauth

HTTP request headers

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

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

get_upgrade_path

UpgradePathEnvelope get_upgrade_path(did, action)

Get upgrade path

Get upgrade path

Example

from __future__ import print_statement
import time
import artikcloud
from artikcloud.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: artikcloud_oauth
artikcloud.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = artikcloud.MonetizationApi()
did = 'did_example' # str | Device ID
action = 'action_example' # str | Action to perform

try: 
    # Get upgrade path
    api_response = api_instance.get_upgrade_path(did, action)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MonetizationApi->get_upgrade_path: %s\n" % e)

Parameters

Name Type Description Notes
did str Device ID
action str Action to perform

Return type

UpgradePathEnvelope

Authorization

artikcloud_oauth

HTTP request headers

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

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

set_pricing_tier

DevicePricingTierEnvelope set_pricing_tier(did, pricing_tier)

Set a device's pricing tier

Set a device's pricing tier

Example

from __future__ import print_statement
import time
import artikcloud
from artikcloud.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: artikcloud_oauth
artikcloud.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = artikcloud.MonetizationApi()
did = 'did_example' # str | Device ID
pricing_tier = artikcloud.DevicePricingTierRequest() # DevicePricingTierRequest | Pricing tier

try: 
    # Set a device's pricing tier
    api_response = api_instance.set_pricing_tier(did, pricing_tier)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MonetizationApi->set_pricing_tier: %s\n" % e)

Parameters

Name Type Description Notes
did str Device ID
pricing_tier DevicePricingTierRequest Pricing tier

Return type

DevicePricingTierEnvelope

Authorization

artikcloud_oauth

HTTP request headers

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

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