IEmployeesApi employeesApi = client.EmployeesApi;
EmployeesApi
ListEmployees
ListEmployeesAsync(
string locationId = null,
string status = null,
int? limit = null,
string cursor = null)
Parameter | Type | Tags | Description |
---|---|---|---|
locationId |
string |
Query, Optional | Filter employees returned to only those that are associated with the specified location. |
status |
string |
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. |
Task<Models.ListEmployeesResponse>
try
{
ListEmployeesResponse result = await employeesApi.ListEmployeesAsync(null, null, null, null);
}
catch (ApiException e){};
RetrieveEmployee
RetrieveEmployeeAsync(string id)
Parameter | Type | Tags | Description |
---|---|---|---|
id |
string |
Template, Required | UUID for the employee that was requested. |
Task<Models.RetrieveEmployeeResponse>
string id = "id0";
try
{
RetrieveEmployeeResponse result = await employeesApi.RetrieveEmployeeAsync(id);
}
catch (ApiException e){};