From b129e3ce366624c228d97c4d78aa52dd69c562f5 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sun, 12 Apr 2026 02:05:20 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20new=20API=20request=20samp?= =?UTF-8?q?les=20and=20reorganize=20existing=20examples=20in=20CHEATSHEET.?= =?UTF-8?q?md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xh/CHEATSHEET.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/xh/CHEATSHEET.md b/xh/CHEATSHEET.md index 9f0c2c5..de2a12f 100644 --- a/xh/CHEATSHEET.md +++ b/xh/CHEATSHEET.md @@ -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 \