Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Commit

Permalink
[FIX] Fix docs about chat.react endpoint, add parameter to endpoint (#…
Browse files Browse the repository at this point in the history
…693)

* Fix docs about chat.react endpoint, add parameter to endpoint

* Fix the explanation about chat.react ednpoint
  • Loading branch information
MarcosSpessatto authored and engelgabriel committed Apr 30, 2018
1 parent 9f4c50c commit 19a0b1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion developer-guides/rest-api/chat/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Toggles the authenciated user's reaction to the provided message.
| :--- | :--- | :--- | :--- |
| `emoji` | `smile` | Required | The emoji to react with. |
| `messageId` | `7aDSXtjMA3KPLxLjt` | Required | The message id to react to. |
| `shouldReact` | `7aDSXtjMA3KPLxLjt` | Optional: `true` or `false` | Parameter to specify if the reaction should be added or removed. |

The `emoji` does not have to contain the `:`'s. However, the emoji *does* have to exist.

Expand All @@ -22,7 +23,7 @@ curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
-H "Content-type:application/json" \
http://localhost:3000/api/v1/chat.react \
-d '{ "messageId": "7aDSXtjMA3KPLxLjt", "emoji": "smile" }'
-d '{ "messageId": "7aDSXtjMA3KPLxLjt", "emoji": "smile", "shouldReact": true }'
```

## Example Result
Expand All @@ -37,5 +38,6 @@ curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \

| Version | Description |
| :--- | :--- |
| 0.64.0 | Added parameter "shouldReact" to make endpoint work like a setter |
| 0.63.0 | Emoji has to exist now |
| 0.62.2 | Added |

0 comments on commit 19a0b1b

Please sign in to comment.