# Swagger\Client\DefaultApi

All URIs are relative to *http://[localhost]:8099/api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**getEventsGet**](DefaultApi.md#getEventsGet) | **GET** /$GetEvents | 
[**hTTPChatServiceGetLoggedUsersPost**](DefaultApi.md#hTTPChatServiceGetLoggedUsersPost) | **POST** /HTTPChatService/GetLoggedUsers | 
[**hTTPChatServiceLoginPost**](DefaultApi.md#hTTPChatServiceLoginPost) | **POST** /HTTPChatService/Login | 
[**hTTPChatServiceLogoutPost**](DefaultApi.md#hTTPChatServiceLogoutPost) | **POST** /HTTPChatService/Logout | 
[**hTTPChatServiceSendMessagePost**](DefaultApi.md#hTTPChatServiceSendMessagePost) | **POST** /HTTPChatService/SendMessage | 


# **getEventsGet**
> \Swagger\Client\Model\InlineResponse2001 getEventsGet($max_events)



Returns event sinks

### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Bearer
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Access-Token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Access-Token', 'Bearer');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$max_events = 10; // int | 

try {
    $result = $apiInstance->getEventsGet($max_events);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getEventsGet: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **max_events** | **int**|  | [optional] [default to 10]

### Return type

[**\Swagger\Client\Model\InlineResponse2001**](../Model/InlineResponse2001.md)

### Authorization

[Bearer](../../README.md#Bearer)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **hTTPChatServiceGetLoggedUsersPost**
> \Swagger\Client\Model\InlineResponse200[] hTTPChatServiceGetLoggedUsersPost()



### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);

try {
    $result = $apiInstance->hTTPChatServiceGetLoggedUsersPost();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->hTTPChatServiceGetLoggedUsersPost: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**\Swagger\Client\Model\InlineResponse200[]**](../Model/InlineResponse200.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **hTTPChatServiceLoginPost**
> string hTTPChatServiceLoginPost($http_chat_service_login_request)



### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$http_chat_service_login_request = new \Swagger\Client\Model\HTTPChatServiceLoginRequest1(); // \Swagger\Client\Model\HTTPChatServiceLoginRequest1 | 

try {
    $result = $apiInstance->hTTPChatServiceLoginPost($http_chat_service_login_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->hTTPChatServiceLoginPost: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **http_chat_service_login_request** | [**\Swagger\Client\Model\HTTPChatServiceLoginRequest1**](../Model/HTTPChatServiceLoginRequest1.md)|  | [optional]

### Return type

**string**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **hTTPChatServiceLogoutPost**
> hTTPChatServiceLogoutPost()



### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);

try {
    $apiInstance->hTTPChatServiceLogoutPost();
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->hTTPChatServiceLogoutPost: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters
This endpoint does not need any parameter.

### Return type

void (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **hTTPChatServiceSendMessagePost**
> hTTPChatServiceSendMessagePost($http_chat_service_send_message_request)



### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$http_chat_service_send_message_request = new \Swagger\Client\Model\HTTPChatServiceSendMessageRequest1(); // \Swagger\Client\Model\HTTPChatServiceSendMessageRequest1 | 

try {
    $apiInstance->hTTPChatServiceSendMessagePost($http_chat_service_send_message_request);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->hTTPChatServiceSendMessagePost: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **http_chat_service_send_message_request** | [**\Swagger\Client\Model\HTTPChatServiceSendMessageRequest1**](../Model/HTTPChatServiceSendMessageRequest1.md)|  | [optional]

### Return type

void (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

