This repository has been archived by the owner on Mar 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 763
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #609 from RocketChat/feature/rest-api-message-read…
…-receipts [NEW] Added docs for chat.getMessageReadReceipts endpoint
- Loading branch information
Showing
5 changed files
with
66 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -240,6 +240,7 @@ | |
- Chat: | ||
- delete | ||
- getMessage | ||
- getMessageReadReceipts | ||
- pinMessage | ||
- postMessage | ||
- react | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
developer-guides/rest-api/chat/getmessagereadreceipts/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Get Message Read Receipts | ||
|
||
Retrieve message read receipts. | ||
|
||
| URL | Requires Auth | HTTP Method | | ||
| :--- | :--- | :--- | | ||
| `/api/v1/chat.getMessageReadReceipts` | `yes` | `GET` | | ||
|
||
## Query Parameters | ||
|
||
| Argument | Example | Required | Description | | ||
| :--- | :--- | :--- | :--- | | ||
| `messageId` | `ByehQjC44FwMeiLbX` | Required | The message id | | ||
|
||
## Example Call | ||
|
||
```bash | ||
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \ | ||
-H "X-User-Id: aobEdbYhXfu5hkeqG" \ | ||
http://localhost:3000/api/v1/chat.getMessageReadReceipts?messageId=ByehQjC44FwMeiLbX | ||
``` | ||
|
||
## Example Result | ||
|
||
```json | ||
{ | ||
"receipts": [ | ||
{ | ||
"_id": "HksCYdTpCiM9DZ7Sa", | ||
"roomId": "GENERAL", | ||
"userId": "nvw6PBrXTejp4sfQt", | ||
"messageId": "WyDsZzjk2wHogtWK2", | ||
"ts": "2018-02-26T20:34:03.907Z", | ||
"user": { | ||
"username": "rocket.cat", | ||
"name": "Rocket cat", | ||
"_id": "nvw6PBrXTejp4sfQt" | ||
} | ||
} | ||
], | ||
"success": true | ||
} | ||
``` | ||
|
||
## Change Log | ||
|
||
| Version | Description | | ||
| :--- | :--- | | ||
| 0.63.0 | Added | |