All URIs are relative to https://api.wall.et
| Method | HTTP request | Description |
|---|---|---|
| archive_ticket | DELETE /v2/ticket/{id} | Archive Ticket |
| create_ticket | POST /v2/ticket | Create Ticket |
| fetch_ticket | GET /v2/ticket/{id} | Get Ticket |
| restore_ticket | PATCH /v2/ticket/{id} | Restore Ticket |
| update_ticket | PUT /v2/ticket/{id} | Update Ticket |
Ticket archive_ticket(id)
Archive Ticket
import wallet
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.TicketsApi(api_client)
id = 'id_example' # str |
try:
# Archive Ticket
api_response = api_instance.archive_ticket(id)
print("The response of TicketsApi->archive_ticket:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TicketsApi->archive_ticket: %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]
Ticket create_ticket(wt_ticket_create_params)
Create Ticket
import wallet
from wallet.models.ticket import Ticket
from wallet.models.wt_ticket_create_params import WTTicketCreateParams
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.TicketsApi(api_client)
wt_ticket_create_params = wallet.WTTicketCreateParams() # WTTicketCreateParams |
try:
# Create Ticket
api_response = api_instance.create_ticket(wt_ticket_create_params)
print("The response of TicketsApi->create_ticket:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TicketsApi->create_ticket: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| wt_ticket_create_params | WTTicketCreateParams |
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]
WTTicket fetch_ticket(id)
Get Ticket
import wallet
from wallet.models.wt_ticket import WTTicket
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.TicketsApi(api_client)
id = 'id_example' # str |
try:
# Get Ticket
api_response = api_instance.fetch_ticket(id)
print("The response of TicketsApi->fetch_ticket:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TicketsApi->fetch_ticket: %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 | - |
| 424 | Foreign Key does not exist | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Ticket restore_ticket(id)
Restore Ticket
import wallet
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.TicketsApi(api_client)
id = 'id_example' # str |
try:
# Restore Ticket
api_response = api_instance.restore_ticket(id)
print("The response of TicketsApi->restore_ticket:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TicketsApi->restore_ticket: %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]
Ticket update_ticket(id, wt_ticket_update_params)
Update Ticket
import wallet
from wallet.models.ticket import Ticket
from wallet.models.wt_ticket_update_params import WTTicketUpdateParams
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.TicketsApi(api_client)
id = 'id_example' # str |
wt_ticket_update_params = wallet.WTTicketUpdateParams() # WTTicketUpdateParams |
try:
# Update Ticket
api_response = api_instance.update_ticket(id, wt_ticket_update_params)
print("The response of TicketsApi->update_ticket:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TicketsApi->update_ticket: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | ||
| wt_ticket_update_params | WTTicketUpdateParams |
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]