Skip to content

Latest commit

 

History

History
361 lines (242 loc) · 9.53 KB

File metadata and controls

361 lines (242 loc) · 9.53 KB

wallet.LoungeApi

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

Method HTTP request Description
archive_lounge DELETE /v2/lounge/{id} Archive Lounge
create_lounge POST /v2/lounge Create Lounge
fetch_all_lounge GET /v2/lounge/all Get all Lounges
restore_lounge PATCH /v2/lounge/{id} Restore Lounge
update_lounge PUT /v2/lounge/{id} Update Lounge

archive_lounge

Lounge archive_lounge(id)

Archive Lounge

Example

import wallet
from wallet.models.lounge import Lounge
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.LoungeApi(api_client)
    id = 'id_example' # str | 

    try:
        # Archive Lounge
        api_response = api_instance.archive_lounge(id)
        print("The response of LoungeApi->archive_lounge:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling LoungeApi->archive_lounge: %s\n" % e)

Parameters

Name Type Description Notes
id str

Return type

Lounge

Authorization

No authorization required

HTTP request headers

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

HTTP response details

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]

create_lounge

Lounge create_lounge(wt_lounge_create_params)

Create Lounge

Example

import wallet
from wallet.models.lounge import Lounge
from wallet.models.wt_lounge_create_params import WTLoungeCreateParams
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.LoungeApi(api_client)
    wt_lounge_create_params = wallet.WTLoungeCreateParams() # WTLoungeCreateParams | 

    try:
        # Create Lounge
        api_response = api_instance.create_lounge(wt_lounge_create_params)
        print("The response of LoungeApi->create_lounge:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling LoungeApi->create_lounge: %s\n" % e)

Parameters

Name Type Description Notes
wt_lounge_create_params WTLoungeCreateParams

Return type

Lounge

Authorization

No authorization required

HTTP request headers

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

HTTP response details

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]

fetch_all_lounge

object fetch_all_lounge(is_archive_included=is_archive_included)

Get all Lounges

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.LoungeApi(api_client)
    is_archive_included = True # bool |  (optional)

    try:
        # Get all Lounges
        api_response = api_instance.fetch_all_lounge(is_archive_included=is_archive_included)
        print("The response of LoungeApi->fetch_all_lounge:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling LoungeApi->fetch_all_lounge: %s\n" % e)

Parameters

Name Type Description Notes
is_archive_included bool [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 -
401 Authentication Failed -
422 Validation Failed -
500 Internal Server Error -

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

restore_lounge

Lounge restore_lounge(id)

Restore Lounge

Example

import wallet
from wallet.models.lounge import Lounge
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.LoungeApi(api_client)
    id = 'id_example' # str | 

    try:
        # Restore Lounge
        api_response = api_instance.restore_lounge(id)
        print("The response of LoungeApi->restore_lounge:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling LoungeApi->restore_lounge: %s\n" % e)

Parameters

Name Type Description Notes
id str

Return type

Lounge

Authorization

No authorization required

HTTP request headers

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

HTTP response details

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]

update_lounge

Lounge update_lounge(id, wt_lounge_update_params)

Update Lounge

Example

import wallet
from wallet.models.lounge import Lounge
from wallet.models.wt_lounge_update_params import WTLoungeUpdateParams
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.LoungeApi(api_client)
    id = 'id_example' # str | 
    wt_lounge_update_params = wallet.WTLoungeUpdateParams() # WTLoungeUpdateParams | 

    try:
        # Update Lounge
        api_response = api_instance.update_lounge(id, wt_lounge_update_params)
        print("The response of LoungeApi->update_lounge:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling LoungeApi->update_lounge: %s\n" % e)

Parameters

Name Type Description Notes
id str
wt_lounge_update_params WTLoungeUpdateParams

Return type

Lounge

Authorization

No authorization required

HTTP request headers

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

HTTP response details

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]