employees_api = client.employees
EmployeesApi
**This endpoint is deprecated. **
ListEmployees
def list_employees(location_id: nil,
status: nil,
limit: nil,
cursor: nil)
Parameter | Type | Tags | Description |
---|---|---|---|
location_id |
String |
Query, Optional | - |
status |
String (Employee Status) |
Query, Optional | Specifies the EmployeeStatus to filter the employee by. |
limit |
Integer |
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: location_id, status: status, limit: limit, cursor: cursor)
if result.success?
puts result.data
elsif result.error?
warn result.errors
end
**This endpoint is deprecated. **
RetrieveEmployee
def retrieve_employee(id:)
Parameter | Type | Tags | Description |
---|---|---|---|
id |
String |
Template, Required | UUID for the employee that was requested. |
Retrieve Employee Response Hash
id = 'id0'
result = employees_api.retrieve_employee(id: id)
if result.success?
puts result.data
elsif result.error?
warn result.errors
end