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.
Docs for chat.getSnippetedMessageById endpoint (#1486)
- Loading branch information
1 parent
00fdf24
commit 6e20b1b
Showing
5 changed files
with
59 additions
and
0 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
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
55 changes: 55 additions & 0 deletions
55
developer-guides/rest-api/chat/getsnippetedmessagebyid/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,55 @@ | ||
# Get Snippeted Message By Id | ||
|
||
Retrieve snippeted message by Id. | ||
|
||
| URL | Requires Auth | HTTP Method | | ||
| :--- | :--- | :--- | | ||
| `/api/v1/chat.getSnippetedMessageById` | `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.getSnippetedMessageById?messageId=ByehQjC44FwMeiLbX | ||
``` | ||
|
||
## Example Result | ||
|
||
```json | ||
{ | ||
"message": { | ||
"_id": "48sifqi7ezh4ifKaK", | ||
"rid": "GENERAL", | ||
"msg": "```dsfsdfsdf```", | ||
"ts": "2019-10-25T23:26:31.550Z", | ||
"u": { | ||
"_id": "CaevAPDbXN252kyXa", | ||
"username": "marcos.defendi", | ||
"name": "Marcos Defendi" | ||
}, | ||
"_updatedAt": "2019-10-25T23:27:51.300Z", | ||
"mentions": [], | ||
"channels": [], | ||
"snippetName": "rr", | ||
"snippeted": true, | ||
"snippetedBy": { | ||
"_id": "CaevAPDbXN252kyXa", | ||
"username": "marcos.defendi" | ||
} | ||
}, | ||
"success": true | ||
} | ||
``` | ||
|
||
## Change Log | ||
|
||
| Version | Description | | ||
| :---- | :---- | | ||
| 2.3.0 | Added | |