📝 Add new API request samples and reorganize existing examples in CHEATSHEET.md
This commit is contained in:
@@ -11,6 +11,20 @@ description: Friendly and fast tool for sending HTTP requests
|
||||
## Usage
|
||||
|
||||
### Sample #1
|
||||
|
||||
```shell
|
||||
xh POST https://play.hatter.me/message/hook.jsonp \
|
||||
'Authorization: Bearer TOKEN' \
|
||||
textMessageContent=test
|
||||
```
|
||||
```shell
|
||||
xh POST https://play.hatter.me/message/hook.jsonp \
|
||||
-A bearer \
|
||||
-a TOKEN \
|
||||
textMessageContent=test
|
||||
```
|
||||
|
||||
### Sample #2
|
||||
```shell
|
||||
curl -X POST 'https://play.hatter.me/message/hook.jsonp?token=TOKEN' \
|
||||
--header 'Content-Type: application/json' \
|
||||
@@ -30,7 +44,7 @@ xh POST 'https://play.hatter.me/message/hook.jsonp' \
|
||||
'text[content]=test-message'
|
||||
```
|
||||
|
||||
### Sample #2
|
||||
### Sample #3
|
||||
```shell
|
||||
xh POST https://hatter.ink/util/print_request.action \
|
||||
x-header-name:test-value \
|
||||
|
||||
Reference in New Issue
Block a user