📝 Add new API request samples and reorganize existing examples in CHEATSHEET.md

This commit is contained in:
2026-04-12 02:05:20 +08:00
parent 203935acbd
commit b129e3ce36

View File

@@ -11,6 +11,20 @@ description: Friendly and fast tool for sending HTTP requests
## Usage ## Usage
### Sample #1 ### 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 ```shell
curl -X POST 'https://play.hatter.me/message/hook.jsonp?token=TOKEN' \ curl -X POST 'https://play.hatter.me/message/hook.jsonp?token=TOKEN' \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
@@ -30,7 +44,7 @@ xh POST 'https://play.hatter.me/message/hook.jsonp' \
'text[content]=test-message' 'text[content]=test-message'
``` ```
### Sample #2 ### Sample #3
```shell ```shell
xh POST https://hatter.ink/util/print_request.action \ xh POST https://hatter.ink/util/print_request.action \
x-header-name:test-value \ x-header-name:test-value \