Skip to content

Instantly share code, notes, and snippets.

@fishyer
Created September 22, 2022 00:33
Show Gist options
  • Save fishyer/fdcb0ae88174838ce42b31b1eb972183 to your computer and use it in GitHub Desktop.
Save fishyer/fdcb0ae88174838ce42b31b1eb972183 to your computer and use it in GitHub Desktop.
葫芦笔记的API-curl用例
curl --location --request POST 'https://www.hulunote.com/myapi/quick-text-put/868253a542864a498090260f24XXXXXX' \
--header 'Host: www.hulunote.com' \
--header 'Accept: application/json, text/plain, */*' \
--header 'Accept-Language: zh-CN' \
--header 'Content-Type: application/json' \
--header 'Sec-Fetch-Dest: empty' \
--header 'Sec-Fetch-Mode: cors' \
--header 'Sec-Fetch-Site: cross-site' \
--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) uTools/3.0.2 Chrome/102.0.5005.167 Electron/19.0.10 Safari/537.36' \
--header 'sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="102"' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'sec-ch-ua-platform: "Windows"' \
--data-raw '{"content":"test-001"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment