@@ -7,6 +7,7 @@ Method | HTTP request | Description
77[ ** addRegistrationOrDeviceToken()** ] ( UserApi.md#addRegistrationOrDeviceToken ) | ** POST** /v3/users/{user_id}/push/{token_type} | Add a registration or device token
88[ ** choosePushNotificationContentTemplate()** ] ( UserApi.md#choosePushNotificationContentTemplate ) | ** PUT** /v3/users/{user_id}/push/template | Choose a push notification content template
99[ ** createUser()** ] ( UserApi.md#createUser ) | ** POST** /v3/users | Create a user
10+ [ ** createUserToken()** ] ( UserApi.md#createUserToken ) | ** POST** /v3/users/{user_id}/token | Create user token
1011[ ** deleteUserById()** ] ( UserApi.md#deleteUserById ) | ** DELETE** /v3/users/{user_id} | Delete a user
1112[ ** leaveMyGroupChannels()** ] ( UserApi.md#leaveMyGroupChannels ) | ** PUT** /v3/users/{user_id}/my_group_channels/leave | Leave my group channels
1213[ ** listMyGroupChannels()** ] ( UserApi.md#listMyGroupChannels ) | ** GET** /v3/users/{user_id}/my_group_channels | List my group channels
@@ -215,6 +216,66 @@ No authorization required
215216[[ Back to Model list]] ( ../../README.md#models )
216217[[ Back to README]] ( ../../README.md )
217218
219+ ## ` createUserToken() `
220+
221+ ``` php
222+ createUserToken($api_token, $user_id, $create_user_token_data): \Sendbird\Model\CreateUserTokenResponse
223+ ```
224+
225+ Create user token
226+
227+ ## Create user token
228+
229+ ### Example
230+
231+ ``` php
232+ <?php
233+ require_once(__DIR__ . '/vendor/autoload.php');
234+
235+
236+
237+ $apiInstance = new Sendbird\Api\UserApi(
238+ // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
239+ // This is optional, `GuzzleHttp\Client` will be used as default.
240+ new GuzzleHttp\Client()
241+ );
242+ $api_token = {{API_TOKEN}}; // string
243+ $user_id = 'user_id_example'; // string
244+ $create_user_token_data = new \Sendbird\Model\CreateUserTokenData(); // \Sendbird\Model\CreateUserTokenData
245+
246+ try {
247+ $result = $apiInstance->createUserToken($api_token, $user_id, $create_user_token_data);
248+ print_r($result);
249+ } catch (Exception $e) {
250+ echo 'Exception when calling UserApi->createUserToken: ', $e->getMessage(), PHP_EOL;
251+ }
252+ ```
253+
254+ ### Parameters
255+
256+ Name | Type | Description | Notes
257+ ------------- | ------------- | ------------- | -------------
258+ ** api_token** | ** string** | |
259+ ** user_id** | ** string** | |
260+ ** create_user_token_data** | [ ** \Sendbird\Model\CreateUserTokenData** ] ( ../Model/CreateUserTokenData.md ) | | [ optional]
261+
262+ ### Return type
263+
264+ [ ** \Sendbird\Model\CreateUserTokenResponse** ] ( ../Model/CreateUserTokenResponse.md )
265+
266+ ### Authorization
267+
268+ No authorization required
269+
270+ ### HTTP request headers
271+
272+ - ** Content-Type** : ` application/json `
273+ - ** Accept** : ` application/json `
274+
275+ [[ Back to top]] ( # ) [[ Back to API list]] ( ../../README.md#endpoints )
276+ [[ Back to Model list]] ( ../../README.md#models )
277+ [[ Back to README]] ( ../../README.md )
278+
218279## ` deleteUserById() `
219280
220281``` php
0 commit comments