Created
December 13, 2020 17:07
-
-
Save wogong/d6e880e191368b502aec95ed84fa1180 to your computer and use it in GitHub Desktop.
flomo shell function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
fl () { | |
API="https://flomoapp.com/iwh/xxxxxxx/" # substitute with your flomo API | |
curl -s -H "Accept: application/json" -H "Content-type: application/json" -s -X POST $API -d '{"content":"'"$*"'"}' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
第四行这样写可以返回
msg
内的内容echo `curl -s -H "Accept: application/json" -H "Content-type: application/json" -s -X POST $API -d '{"content":"'"$*"'"}' | sed 's/[{}"]//g' | sed 's/[,:]/\n/g' | tail -n1