@tennac-booking/sdk
Version:
OpenAPI client for @tennac-booking/sdk
115 lines (73 loc) • 2.85 kB
Markdown
# UserApi
All URIs are relative to *http://localhost*
|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**getMyClubCustomerSettings**](#getmyclubcustomersettings) | **GET** /api/users/me/clubCustomers/{clubId} | |
|[**getMyClubInfos**](#getmyclubinfos) | **GET** /api/users/me/club-infos | |
# **getMyClubCustomerSettings**
> MyClubCustomerSettingsResponse getMyClubCustomerSettings()
Récupère les paramètres ClubCustomer et les settings du club pour l\'utilisateur
### Example
```typescript
import {
UserApi,
Configuration
} from '@tennac-booking/sdk';
const configuration = new Configuration();
const apiInstance = new UserApi(configuration);
let clubId: string; // (default to undefined)
const { status, data } = await apiInstance.getMyClubCustomerSettings(
clubId
);
```
### Parameters
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **clubId** | [**string**] | | defaults to undefined|
### Return type
**MyClubCustomerSettingsResponse**
### Authorization
[bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Paramètres ClubCustomer du club | - |
|**400** | clubId invalide | - |
|**404** | ClubCustomer ou settings du club introuvables | - |
[[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)
# **getMyClubInfos**
> MyClubInfosResponse getMyClubInfos()
Récupère les informations du club de l\'utilisateur
### Example
```typescript
import {
UserApi,
Configuration
} from '@tennac-booking/sdk';
const configuration = new Configuration();
const apiInstance = new UserApi(configuration);
let clubId: string; // (default to undefined)
const { status, data } = await apiInstance.getMyClubInfos(
clubId
);
```
### Parameters
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **clubId** | [**string**] | | defaults to undefined|
### Return type
**MyClubInfosResponse**
### Authorization
[bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Informations du club | - |
|**500** | Server Error | - |
[[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)