chatkitty
Version:
OpenAPI client for chatkitty
73 lines (50 loc) • 2.66 kB
Markdown
All URIs are relative to *https://api.chatkitty.com*
|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**listUserSessions**](
> PagedModelChatUserSessionResource listUserSessions()
Returns a page of user sessions belonging to this application
### Example
```typescript
import {
UserSessionsApi,
Configuration
} from 'chatkitty';
const configuration = new Configuration();
const apiInstance = new UserSessionsApi(configuration);
let page: number; //Zero-based page index (0..N) (optional) (default to 0)
let size: number; //The size of the page to be returned (optional) (default to 25)
let sort: Array<string>; //Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (optional) (default to undefined)
let state: 'ACTIVE' | 'ENDED'; //Filters by state (optional) (default to undefined)
const { status, data } = await apiInstance.listUserSessions(
page,
size,
sort,
state
);
```
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **page** | [**number**] | Zero-based page index (0..N) | (optional) defaults to 0|
| **size** | [**number**] | The size of the page to be returned | (optional) defaults to 25|
| **sort** | **Array<string>** | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. | (optional) defaults to undefined|
| **state** | [**&
**PagedModelChatUserSessionResource**
[](../README.md
- **Content-Type**: Not defined
- **Accept**: application/json, application/vnd.chatkitty+json, application/vnd.chatkitty.v1+json, application/vnd.hal+json, application/hal+json
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**404** | Resource not found | - |
|**403** | Access is denied | - |
|**400** | Client error | - |
|**401** | Unauthorized: Full authentication is required to access this resource | - |
|**200** | OK | - |
[[Back to top]](