Skip to content

Latest commit

 

History

History
362 lines (243 loc) · 10.8 KB

File metadata and controls

362 lines (243 loc) · 10.8 KB

wallet.EmployeeAPIKeysApi

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

Method HTTP request Description
archive_employee_api_keys DELETE /v2/employee/apiKeys/{id} Archive employee API Key
create_employee_api_keys POST /v2/employee/apiKeys Create employee API Key
fetch_all_employee_api_keys GET /v2/employee/apiKeys/all Fetch all employee API Keys
fetch_employee_api_key_by_id GET /v2/employee/apiKeys/{id} Fetch API Key
update_employee_api_keys PUT /v2/employee/apiKeys/{id} Update employee API Key

archive_employee_api_keys

EmployeeAPIKey archive_employee_api_keys(id)

Archive employee API Key

Example

import wallet
from wallet.models.employee_api_key import EmployeeAPIKey
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.EmployeeAPIKeysApi(api_client)
    id = None # object | 

    try:
        # Archive employee API Key
        api_response = api_instance.archive_employee_api_keys(id)
        print("The response of EmployeeAPIKeysApi->archive_employee_api_keys:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling EmployeeAPIKeysApi->archive_employee_api_keys: %s\n" % e)

Parameters

Name Type Description Notes
id object

Return type

EmployeeAPIKey

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_employee_api_keys

EmployeeAPIKey create_employee_api_keys(wt_employee_api_key_create_params)

Create employee API Key

Example

import wallet
from wallet.models.employee_api_key import EmployeeAPIKey
from wallet.models.wt_employee_api_key_create_params import WTEmployeeAPIKeyCreateParams
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.EmployeeAPIKeysApi(api_client)
    wt_employee_api_key_create_params = wallet.WTEmployeeAPIKeyCreateParams() # WTEmployeeAPIKeyCreateParams | 

    try:
        # Create employee API Key
        api_response = api_instance.create_employee_api_keys(wt_employee_api_key_create_params)
        print("The response of EmployeeAPIKeysApi->create_employee_api_keys:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling EmployeeAPIKeysApi->create_employee_api_keys: %s\n" % e)

Parameters

Name Type Description Notes
wt_employee_api_key_create_params WTEmployeeAPIKeyCreateParams

Return type

EmployeeAPIKey

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_employee_api_keys

List[EmployeeAPIKey] fetch_all_employee_api_keys(is_archive_included=is_archive_included)

Fetch all employee API Keys

Example

import wallet
from wallet.models.employee_api_key import EmployeeAPIKey
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.EmployeeAPIKeysApi(api_client)
    is_archive_included = True # bool |  (optional)

    try:
        # Fetch all employee API Keys
        api_response = api_instance.fetch_all_employee_api_keys(is_archive_included=is_archive_included)
        print("The response of EmployeeAPIKeysApi->fetch_all_employee_api_keys:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling EmployeeAPIKeysApi->fetch_all_employee_api_keys: %s\n" % e)

Parameters

Name Type Description Notes
is_archive_included bool [optional]

Return type

List[EmployeeAPIKey]

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]

fetch_employee_api_key_by_id

WTEmployeeAPIKey fetch_employee_api_key_by_id(id)

Fetch API Key

Example

import wallet
from wallet.models.wt_employee_api_key import WTEmployeeAPIKey
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.EmployeeAPIKeysApi(api_client)
    id = None # object | 

    try:
        # Fetch API Key
        api_response = api_instance.fetch_employee_api_key_by_id(id)
        print("The response of EmployeeAPIKeysApi->fetch_employee_api_key_by_id:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling EmployeeAPIKeysApi->fetch_employee_api_key_by_id: %s\n" % e)

Parameters

Name Type Description Notes
id object

Return type

WTEmployeeAPIKey

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_employee_api_keys

EmployeeAPIKey update_employee_api_keys(id, wt_employee_api_key_update_params)

Update employee API Key

Example

import wallet
from wallet.models.employee_api_key import EmployeeAPIKey
from wallet.models.wt_employee_api_key_update_params import WTEmployeeAPIKeyUpdateParams
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.EmployeeAPIKeysApi(api_client)
    id = None # object | 
    wt_employee_api_key_update_params = wallet.WTEmployeeAPIKeyUpdateParams() # WTEmployeeAPIKeyUpdateParams | 

    try:
        # Update employee API Key
        api_response = api_instance.update_employee_api_keys(id, wt_employee_api_key_update_params)
        print("The response of EmployeeAPIKeysApi->update_employee_api_keys:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling EmployeeAPIKeysApi->update_employee_api_keys: %s\n" % e)

Parameters

Name Type Description Notes
id object
wt_employee_api_key_update_params WTEmployeeAPIKeyUpdateParams

Return type

EmployeeAPIKey

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]