All URIs are relative to https://api.wall.et
| Method | HTTP request | Description |
|---|---|---|
| archive_email_subscriber | DELETE /v2/emailSubscriber/{id} | Archive Email Subscriber |
| create_email_subscriber | POST /v2/emailSubscriber | Create Email Subscriber |
| fetch_all_email_subscribers | GET /v2/emailSubscriber/all | Get all Email Subscribers |
| restore_email_subscriber | PATCH /v2/emailSubscriber/{id} | Restore Email Subscriber |
| update_email_subscriber | PUT /v2/emailSubscriber/{id} | Update Email Subscriber |
EmailSubscriber archive_email_subscriber(id)
Archive Email Subscriber
import wallet
from wallet.models.email_subscriber import EmailSubscriber
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.EmailSubscribersApi(api_client)
id = 'id_example' # str |
try:
# Archive Email Subscriber
api_response = api_instance.archive_email_subscriber(id)
print("The response of EmailSubscribersApi->archive_email_subscriber:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling EmailSubscribersApi->archive_email_subscriber: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str |
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]
EmailSubscriber create_email_subscriber(wt_email_subscriber_create_params)
Create Email Subscriber
import wallet
from wallet.models.email_subscriber import EmailSubscriber
from wallet.models.wt_email_subscriber_create_params import WTEmailSubscriberCreateParams
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.EmailSubscribersApi(api_client)
wt_email_subscriber_create_params = wallet.WTEmailSubscriberCreateParams() # WTEmailSubscriberCreateParams |
try:
# Create Email Subscriber
api_response = api_instance.create_email_subscriber(wt_email_subscriber_create_params)
print("The response of EmailSubscribersApi->create_email_subscriber:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling EmailSubscribersApi->create_email_subscriber: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| wt_email_subscriber_create_params | WTEmailSubscriberCreateParams |
No authorization required
- Content-Type: application/json
- 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]
object fetch_all_email_subscribers(start_date_time=start_date_time, end_date_time=end_date_time, is_archive_included=is_archive_included)
Get all Email Subscribers
import wallet
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.EmailSubscribersApi(api_client)
start_date_time = '2013-10-20T19:20:30+01:00' # datetime | (optional)
end_date_time = '2013-10-20T19:20:30+01:00' # datetime | (optional)
is_archive_included = True # bool | (optional)
try:
# Get all Email Subscribers
api_response = api_instance.fetch_all_email_subscribers(start_date_time=start_date_time, end_date_time=end_date_time, is_archive_included=is_archive_included)
print("The response of EmailSubscribersApi->fetch_all_email_subscribers:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling EmailSubscribersApi->fetch_all_email_subscribers: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| start_date_time | datetime | [optional] | |
| end_date_time | datetime | [optional] | |
| is_archive_included | bool | [optional] |
object
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]
EmailSubscriber restore_email_subscriber(id)
Restore Email Subscriber
import wallet
from wallet.models.email_subscriber import EmailSubscriber
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.EmailSubscribersApi(api_client)
id = 'id_example' # str |
try:
# Restore Email Subscriber
api_response = api_instance.restore_email_subscriber(id)
print("The response of EmailSubscribersApi->restore_email_subscriber:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling EmailSubscribersApi->restore_email_subscriber: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str |
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]
EmailSubscriber update_email_subscriber(id, wt_email_subscriber_update_params)
Update Email Subscriber
import wallet
from wallet.models.email_subscriber import EmailSubscriber
from wallet.models.wt_email_subscriber_update_params import WTEmailSubscriberUpdateParams
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.EmailSubscribersApi(api_client)
id = 'id_example' # str |
wt_email_subscriber_update_params = wallet.WTEmailSubscriberUpdateParams() # WTEmailSubscriberUpdateParams |
try:
# Update Email Subscriber
api_response = api_instance.update_email_subscriber(id, wt_email_subscriber_update_params)
print("The response of EmailSubscribersApi->update_email_subscriber:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling EmailSubscribersApi->update_email_subscriber: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | ||
| wt_email_subscriber_update_params | WTEmailSubscriberUpdateParams |
No authorization required
- Content-Type: application/json
- 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]