All URIs are relative to https://api.wall.et
| Method | HTTP request | Description |
|---|---|---|
| get_active_campaigns | GET /v2/settings/campaigns/active | Get active campaigns |
| get_vouchers_count | GET /v2/settings/vouchers/count | Get vouchers count |
List[StaticVoucherCampaign] get_active_campaigns()
Get active campaigns
import wallet
from wallet.models.static_voucher_campaign import StaticVoucherCampaign
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.SettingsApi(api_client)
try:
# Get active campaigns
api_response = api_instance.get_active_campaigns()
print("The response of SettingsApi->get_active_campaigns:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling SettingsApi->get_active_campaigns: %s\n" % e)This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WTCountResult get_vouchers_count()
Get vouchers count
import wallet
from wallet.models.wt_count_result import WTCountResult
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.SettingsApi(api_client)
try:
# Get vouchers count
api_response = api_instance.get_vouchers_count()
print("The response of SettingsApi->get_vouchers_count:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling SettingsApi->get_vouchers_count: %s\n" % e)This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]