Skip to content

Latest commit

 

History

History
1193 lines (798 loc) · 37.2 KB

File metadata and controls

1193 lines (798 loc) · 37.2 KB

wallet.InteractionsApi

All URIs are relative to https://api.wall.et

Method HTTP request Description
claim_ticket PUT /wallet/ticket/claim/{id} Update ticket
create_advertisement_credit_scan POST /wallet/advertisementCredit/scan/{adCreditID} Create ad credit scan
create_employee_v_card GET /wallet/employee/vcard/{id} Fetch an employee's VCard
create_ics_file GET /wallet/liveevent/ics/{id} Fetch ICS for live event
create_virtual_business_card_v_card GET /wallet/virtualBusinessCard/vCard/{id} Fetch an employee's VCard
fetch_all_static_vouchers_associated_with_customer_with_voucher_id GET /wallet/staticVoucher/all Fetch a customer's static vouchers on the basis of a given voucher ID
fetch_customer_tickets_with_token POST /wallet/tickets/fetchCustomerTicketsWithToken Update ticket
fetch_dynamic_voucher_with_voucher_id GET /wallet/dynamicVoucher/{voucherID} Fetch dynamic voucher
fetch_member_information GET /wallet/member Fetch member information
fetch_static_voucher_with_voucher_id GET /wallet/staticVoucher/{voucherID} Fetch static voucher
fetch_wallet_page_with_token POST /wallet/page/token Fetch page with token NOTE: This route exists because a token can completely change the dataset returned to the client. A simple fetch just logs the token with the request, but a fetchWithToken request can have a very different object returned to the client.
fetch_wallet_payment_objects_with_token POST /wallet/paymentObject/token Fetch payment objects with token NOTE: This route exists because a token can completely change the dataset returned to the client. A simple fetch just logs the token with the request, but a fetchWithToken request can have a very different object returned to the client.
find_by_vanity_handle GET /wallet/vanityHandle/{handle} Fetch vanity handle
identify_item GET /wallet/item/identify/{itemID} Identify item
request_merchant_url_redirect POST /wallet/merchantURL/{itemID} Request Merchant URL
subscribe_email POST /wallet/subscribeEmail Create email subscriber
subscribe_sms POST /wallet/subscribeSms Create sms subscriber

claim_ticket

Ticket claim_ticket(id, claim_ticket_request)

Update ticket

Example

import wallet
from wallet.models.claim_ticket_request import ClaimTicketRequest
from wallet.models.ticket import Ticket
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.InteractionsApi(api_client)
    id = None # object | 
    claim_ticket_request = wallet.ClaimTicketRequest() # ClaimTicketRequest | 

    try:
        # Update ticket
        api_response = api_instance.claim_ticket(id, claim_ticket_request)
        print("The response of InteractionsApi->claim_ticket:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling InteractionsApi->claim_ticket: %s\n" % e)

Parameters

Name Type Description Notes
id object
claim_ticket_request ClaimTicketRequest

Return type

Ticket

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Ok -
422 Validation Failed -
500 Internal Server Error -

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

create_advertisement_credit_scan

AdvertisementCreditScan create_advertisement_credit_scan(ad_credit_id)

Create ad credit scan

Example

import wallet
from wallet.models.advertisement_credit_scan import AdvertisementCreditScan
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.InteractionsApi(api_client)
    ad_credit_id = None # object | 

    try:
        # Create ad credit scan
        api_response = api_instance.create_advertisement_credit_scan(ad_credit_id)
        print("The response of InteractionsApi->create_advertisement_credit_scan:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling InteractionsApi->create_advertisement_credit_scan: %s\n" % e)

Parameters

Name Type Description Notes
ad_credit_id object

Return type

AdvertisementCreditScan

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Ok -
422 Validation Failed -
500 Internal Server Error -

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

create_employee_v_card

str create_employee_v_card(id)

Fetch an employee's VCard

Example

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.InteractionsApi(api_client)
    id = None # object | 

    try:
        # Fetch an employee's VCard
        api_response = api_instance.create_employee_v_card(id)
        print("The response of InteractionsApi->create_employee_v_card:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling InteractionsApi->create_employee_v_card: %s\n" % e)

Parameters

Name Type Description Notes
id object

Return type

str

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Ok -
422 Validation Failed -
500 Internal Server Error -

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

create_ics_file

object create_ics_file(id)

Fetch ICS for live event

Example

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.InteractionsApi(api_client)
    id = None # object | 

    try:
        # Fetch ICS for live event
        api_response = api_instance.create_ics_file(id)
        print("The response of InteractionsApi->create_ics_file:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling InteractionsApi->create_ics_file: %s\n" % e)

Parameters

Name Type Description Notes
id object

Return type

object

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Ok -
422 Validation Failed -
500 Internal Server Error -

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

create_virtual_business_card_v_card

str create_virtual_business_card_v_card(id)

Fetch an employee's VCard

Example

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.InteractionsApi(api_client)
    id = None # object | 

    try:
        # Fetch an employee's VCard
        api_response = api_instance.create_virtual_business_card_v_card(id)
        print("The response of InteractionsApi->create_virtual_business_card_v_card:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling InteractionsApi->create_virtual_business_card_v_card: %s\n" % e)

Parameters

Name Type Description Notes
id object

Return type

str

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Ok -
422 Validation Failed -
500 Internal Server Error -

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

fetch_all_static_vouchers_associated_with_customer_with_voucher_id

List[FetchAllStaticVouchersAssociatedWithCustomerWithVoucherID200ResponseInner] fetch_all_static_vouchers_associated_with_customer_with_voucher_id(voucher_id)

Fetch a customer's static vouchers on the basis of a given voucher ID

Example

import wallet
from wallet.models.fetch_all_static_vouchers_associated_with_customer_with_voucher_id200_response_inner import FetchAllStaticVouchersAssociatedWithCustomerWithVoucherID200ResponseInner
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.InteractionsApi(api_client)
    voucher_id = None # object | 

    try:
        # Fetch a customer's static vouchers on the basis of a given voucher ID
        api_response = api_instance.fetch_all_static_vouchers_associated_with_customer_with_voucher_id(voucher_id)
        print("The response of InteractionsApi->fetch_all_static_vouchers_associated_with_customer_with_voucher_id:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling InteractionsApi->fetch_all_static_vouchers_associated_with_customer_with_voucher_id: %s\n" % e)

Parameters

Name Type Description Notes
voucher_id object

Return type

List[FetchAllStaticVouchersAssociatedWithCustomerWithVoucherID200ResponseInner]

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Ok -
422 Validation Failed -
500 Internal Server Error -

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

fetch_customer_tickets_with_token

List[Ticket] fetch_customer_tickets_with_token(fetch_customer_tickets_with_token_request)

Update ticket

Example

import wallet
from wallet.models.fetch_customer_tickets_with_token_request import FetchCustomerTicketsWithTokenRequest
from wallet.models.ticket import Ticket
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.InteractionsApi(api_client)
    fetch_customer_tickets_with_token_request = wallet.FetchCustomerTicketsWithTokenRequest() # FetchCustomerTicketsWithTokenRequest | 

    try:
        # Update ticket
        api_response = api_instance.fetch_customer_tickets_with_token(fetch_customer_tickets_with_token_request)
        print("The response of InteractionsApi->fetch_customer_tickets_with_token:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling InteractionsApi->fetch_customer_tickets_with_token: %s\n" % e)

Parameters

Name Type Description Notes
fetch_customer_tickets_with_token_request FetchCustomerTicketsWithTokenRequest

Return type

List[Ticket]

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Ok -
422 Validation Failed -
500 Internal Server Error -

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

fetch_dynamic_voucher_with_voucher_id

DynamicVoucher fetch_dynamic_voucher_with_voucher_id(voucher_id)

Fetch dynamic voucher

Example

import wallet
from wallet.models.dynamic_voucher import DynamicVoucher
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.InteractionsApi(api_client)
    voucher_id = None # object | 

    try:
        # Fetch dynamic voucher
        api_response = api_instance.fetch_dynamic_voucher_with_voucher_id(voucher_id)
        print("The response of InteractionsApi->fetch_dynamic_voucher_with_voucher_id:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling InteractionsApi->fetch_dynamic_voucher_with_voucher_id: %s\n" % e)

Parameters

Name Type Description Notes
voucher_id object

Return type

DynamicVoucher

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Ok -
422 Validation Failed -
500 Internal Server Error -

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

fetch_member_information

Member fetch_member_information(member_id, merchant_id)

Fetch member information

Example

import wallet
from wallet.models.member import Member
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.InteractionsApi(api_client)
    member_id = 'member_id_example' # str | 
    merchant_id = 'merchant_id_example' # str | 

    try:
        # Fetch member information
        api_response = api_instance.fetch_member_information(member_id, merchant_id)
        print("The response of InteractionsApi->fetch_member_information:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling InteractionsApi->fetch_member_information: %s\n" % e)

Parameters

Name Type Description Notes
member_id str
merchant_id str

Return type

Member

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Ok -
422 Validation Failed -
500 Internal Server Error -

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

fetch_static_voucher_with_voucher_id

StaticVoucher fetch_static_voucher_with_voucher_id(voucher_id)

Fetch static voucher

Example

import wallet
from wallet.models.static_voucher import StaticVoucher
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.InteractionsApi(api_client)
    voucher_id = None # object | 

    try:
        # Fetch static voucher
        api_response = api_instance.fetch_static_voucher_with_voucher_id(voucher_id)
        print("The response of InteractionsApi->fetch_static_voucher_with_voucher_id:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling InteractionsApi->fetch_static_voucher_with_voucher_id: %s\n" % e)

Parameters

Name Type Description Notes
voucher_id object

Return type

StaticVoucher

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Ok -
422 Validation Failed -
500 Internal Server Error -

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

fetch_wallet_page_with_token

object fetch_wallet_page_with_token(wt_fetch_wallet_payment_objects_with_token)

Fetch page with token NOTE: This route exists because a token can completely change the dataset returned to the client. A simple fetch just logs the token with the request, but a fetchWithToken request can have a very different object returned to the client.

Example

import wallet
from wallet.models.wt_fetch_wallet_payment_objects_with_token import WTFetchWalletPaymentObjectsWithToken
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.InteractionsApi(api_client)
    wt_fetch_wallet_payment_objects_with_token = wallet.WTFetchWalletPaymentObjectsWithToken() # WTFetchWalletPaymentObjectsWithToken | 

    try:
        # Fetch page with token NOTE: This route exists because a token can completely change the dataset returned to the client. A simple fetch just logs the token with the request, but a fetchWithToken request can have a very different object returned to the client.
        api_response = api_instance.fetch_wallet_page_with_token(wt_fetch_wallet_payment_objects_with_token)
        print("The response of InteractionsApi->fetch_wallet_page_with_token:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling InteractionsApi->fetch_wallet_page_with_token: %s\n" % e)

Parameters

Name Type Description Notes
wt_fetch_wallet_payment_objects_with_token WTFetchWalletPaymentObjectsWithToken

Return type

object

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Ok -
422 Validation Failed -
500 Internal Server Error -

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

fetch_wallet_payment_objects_with_token

object fetch_wallet_payment_objects_with_token(wt_fetch_wallet_payment_objects_with_token)

Fetch payment objects with token NOTE: This route exists because a token can completely change the dataset returned to the client. A simple fetch just logs the token with the request, but a fetchWithToken request can have a very different object returned to the client.

Example

import wallet
from wallet.models.wt_fetch_wallet_payment_objects_with_token import WTFetchWalletPaymentObjectsWithToken
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.InteractionsApi(api_client)
    wt_fetch_wallet_payment_objects_with_token = wallet.WTFetchWalletPaymentObjectsWithToken() # WTFetchWalletPaymentObjectsWithToken | 

    try:
        # Fetch payment objects with token NOTE: This route exists because a token can completely change the dataset returned to the client. A simple fetch just logs the token with the request, but a fetchWithToken request can have a very different object returned to the client.
        api_response = api_instance.fetch_wallet_payment_objects_with_token(wt_fetch_wallet_payment_objects_with_token)
        print("The response of InteractionsApi->fetch_wallet_payment_objects_with_token:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling InteractionsApi->fetch_wallet_payment_objects_with_token: %s\n" % e)

Parameters

Name Type Description Notes
wt_fetch_wallet_payment_objects_with_token WTFetchWalletPaymentObjectsWithToken

Return type

object

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Ok -
422 Validation Failed -
500 Internal Server Error -

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

find_by_vanity_handle

WalletConfiguration find_by_vanity_handle(handle)

Fetch vanity handle

Example

import wallet
from wallet.models.wallet_configuration import WalletConfiguration
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.InteractionsApi(api_client)
    handle = 'handle_example' # str | 

    try:
        # Fetch vanity handle
        api_response = api_instance.find_by_vanity_handle(handle)
        print("The response of InteractionsApi->find_by_vanity_handle:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling InteractionsApi->find_by_vanity_handle: %s\n" % e)

Parameters

Name Type Description Notes
handle str

Return type

WalletConfiguration

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Ok -
422 Validation Failed -
500 Internal Server Error -

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

identify_item

object identify_item(item_id, is_refresh=is_refresh, phone_verification_token=phone_verification_token, referrer=referrer)

Identify item

Example

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.InteractionsApi(api_client)
    item_id = 'item_id_example' # str | 
    is_refresh = True # bool |  (optional)
    phone_verification_token = 'phone_verification_token_example' # str |  (optional)
    referrer = 'referrer_example' # str |  (optional)

    try:
        # Identify item
        api_response = api_instance.identify_item(item_id, is_refresh=is_refresh, phone_verification_token=phone_verification_token, referrer=referrer)
        print("The response of InteractionsApi->identify_item:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling InteractionsApi->identify_item: %s\n" % e)

Parameters

Name Type Description Notes
item_id str
is_refresh bool [optional]
phone_verification_token str [optional]
referrer str [optional]

Return type

object

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Ok -
422 Validation Failed -
500 Internal Server Error -

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

request_merchant_url_redirect

object request_merchant_url_redirect(item_id, browser_details)

Request Merchant URL

Example

import wallet
from wallet.models.browser_details import BrowserDetails
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.InteractionsApi(api_client)
    item_id = 'item_id_example' # str | 
    browser_details = wallet.BrowserDetails() # BrowserDetails | 

    try:
        # Request Merchant URL
        api_response = api_instance.request_merchant_url_redirect(item_id, browser_details)
        print("The response of InteractionsApi->request_merchant_url_redirect:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling InteractionsApi->request_merchant_url_redirect: %s\n" % e)

Parameters

Name Type Description Notes
item_id str
browser_details BrowserDetails

Return type

object

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Ok -
422 Validation Failed -
500 Internal Server Error -

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

subscribe_email

EmailSubscriber subscribe_email(wt_email_subscriber_create_params_wallet_ui)

Create email subscriber

Example

import wallet
from wallet.models.email_subscriber import EmailSubscriber
from wallet.models.wt_email_subscriber_create_params_wallet_ui import WTEmailSubscriberCreateParamsWalletUI
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.InteractionsApi(api_client)
    wt_email_subscriber_create_params_wallet_ui = wallet.WTEmailSubscriberCreateParamsWalletUI() # WTEmailSubscriberCreateParamsWalletUI | 

    try:
        # Create email subscriber
        api_response = api_instance.subscribe_email(wt_email_subscriber_create_params_wallet_ui)
        print("The response of InteractionsApi->subscribe_email:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling InteractionsApi->subscribe_email: %s\n" % e)

Parameters

Name Type Description Notes
wt_email_subscriber_create_params_wallet_ui WTEmailSubscriberCreateParamsWalletUI

Return type

EmailSubscriber

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Ok -
422 Validation Failed -
500 Internal Server Error -

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

subscribe_sms

SmsSubscriber subscribe_sms(wt_sms_subscriber_create_params_wallet_ui)

Create sms subscriber

Example

import wallet
from wallet.models.sms_subscriber import SmsSubscriber
from wallet.models.wt_sms_subscriber_create_params_wallet_ui import WTSmsSubscriberCreateParamsWalletUI
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.InteractionsApi(api_client)
    wt_sms_subscriber_create_params_wallet_ui = wallet.WTSmsSubscriberCreateParamsWalletUI() # WTSmsSubscriberCreateParamsWalletUI | 

    try:
        # Create sms subscriber
        api_response = api_instance.subscribe_sms(wt_sms_subscriber_create_params_wallet_ui)
        print("The response of InteractionsApi->subscribe_sms:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling InteractionsApi->subscribe_sms: %s\n" % e)

Parameters

Name Type Description Notes
wt_sms_subscriber_create_params_wallet_ui WTSmsSubscriberCreateParamsWalletUI

Return type

SmsSubscriber

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Ok -
422 Validation Failed -
500 Internal Server Error -

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