Skip to content

Commit 0b0317c

Browse files
author
Nikolaos Spyratos
committed
Merge branch 'master' of github.com:carandclassic/talkjs-php
2 parents 3e9af17 + b873055 commit 0b0317c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ $filters = [
8383
```php
8484
$appId = 'YOUR_APP_ID';
8585
$secretKey = 'YOUR_SECRET_KEY';
86-
$talkJSClient = new TalkJSClient($appId, $secretKey)
86+
$talkJSClient = new TalkJSClient($appId, $secretKey);
8787
```
8888

8989
### Users
@@ -158,6 +158,13 @@ $talkJSClient->conversations->leave('my_conversation_id', 'my_user_id');
158158
$talkJSClient->conversations->delete('my_conversation_id');
159159
```
160160

161+
- Update participation settings (notifications and read/write access)
162+
```php
163+
$notify = true; // Boolean, default true
164+
$access = 'ReadWrite'; // ReadWrite or Read, default ReadWrite
165+
$talkJSClient->conversations->updateParticipation('my_conversation_id', 'my_user_id', $notify, $access);
166+
```
167+
161168
### Messages
162169

163170
For more information on custom data and filters, please refer to the TalkJS documentation linked above.
@@ -179,7 +186,7 @@ $talkJSClient->messages->get('my_conversation_id', $filters);
179186

180187
- Find specific message in a conversation
181188
```php
182-
$talkJSClient->messages->find('my_conversation_id', 'message_id', $filters);
189+
$talkJSClient->messages->find('my_conversation_id', 'message_id');
183190
```
184191

185192
- Post a system message, returns a `MessageCreated` event class with input data and `type` of `SystemMessage`

0 commit comments

Comments
 (0)