employees_api = client.employees
EmployeesApi
This endpoint is deprecated.
ListEmployees
def list_employees(self,
location_id=None,
status=None,
limit=None,
cursor=None)
Parameter | Type | Tags | Description |
---|---|---|---|
location_id |
string |
Query, Optional | - |
status |
str (Employee Status) |
Query, Optional | Specifies the EmployeeStatus to filter the employee by. |
limit |
int |
Query, Optional | The number of employees to be returned on each page. |
cursor |
string |
Query, Optional | The token required to retrieve the specified page of results. |
location_id = 'location_id4'
status = 'ACTIVE'
limit = 172
cursor = 'cursor6'
result = employees_api.list_employees(location_id, status, limit, cursor)
if result.is_success():
print(result.body)
elif result.is_error():
print(result.errors)
This endpoint is deprecated.
RetrieveEmployee
def retrieve_employee(self,
id)
Parameter | Type | Tags | Description |
---|---|---|---|
id |
string |
Template, Required | UUID for the employee that was requested. |
id = 'id0'
result = employees_api.retrieve_employee(id)
if result.is_success():
print(result.body)
elif result.is_error():
print(result.errors)