All URIs are relative to http://localhost/api/v3
| Method | HTTP request | Description |
|---|---|---|
| get_sla | GET /slas/{levelId} | Gets sla |
| get_sla_ticket_history | GET /slas/{ticketId}/history | Gets ticket sla history |
| get_slas_list | GET /slas | Gets list of slas |
Sla get_sla(level_id)
Gets sla
Gets sla
import time
import liveagent_api
from liveagent_api.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: privileges
liveagent_api.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure API key authorization: apikey
liveagent_api.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
# liveagent_api.configuration.api_key_prefix['apikey'] = 'BEARER'
# create an instance of the API class
api_instance = liveagent_api.SlasApi()
level_id = 'level_id_example' # str |
try:
# Gets sla
api_response = api_instance.get_sla(level_id)
pprint(api_response)
except ApiException as e:
print "Exception when calling SlasApi->get_sla: %s\n" % e| Name | Type | Description | Notes |
|---|---|---|---|
| level_id | str |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SlaHistory get_sla_ticket_history(ticket_id)
Gets ticket sla history
Gets ticket sla history
import time
import liveagent_api
from liveagent_api.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: privileges
liveagent_api.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure API key authorization: apikey
liveagent_api.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
# liveagent_api.configuration.api_key_prefix['apikey'] = 'BEARER'
# create an instance of the API class
api_instance = liveagent_api.SlasApi()
ticket_id = 'ticket_id_example' # str |
try:
# Gets ticket sla history
api_response = api_instance.get_sla_ticket_history(ticket_id)
pprint(api_response)
except ApiException as e:
print "Exception when calling SlasApi->get_sla_ticket_history: %s\n" % e| Name | Type | Description | Notes |
|---|---|---|---|
| ticket_id | str |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Sla] get_slas_list()
Gets list of slas
Gets list of slas
import time
import liveagent_api
from liveagent_api.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: privileges
liveagent_api.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure API key authorization: apikey
liveagent_api.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
# liveagent_api.configuration.api_key_prefix['apikey'] = 'BEARER'
# create an instance of the API class
api_instance = liveagent_api.SlasApi()
try:
# Gets list of slas
api_response = api_instance.get_slas_list()
pprint(api_response)
except ApiException as e:
print "Exception when calling SlasApi->get_slas_list: %s\n" % eThis endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]