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
# To use : add your line notify api token | |
LINE_NOTIFY_ACCESS_TOKEN= | |
# Provide your multiline text. We use shell script heredoc syntax here. | |
MESSAGE=$(cat << END_HEREDOC | |
HELLO LINE 1 | |
HELLO LINE 2 | |
END_HEREDOC | |
) |
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
AUTH_KEY= | |
APP_ID= | |
MESSAGE_TEMPLATE_ID= | |
SENDER_NAME= | |
MOBILE= | |
curl -X POST -H "Content-Type: application/json" \ | |
-H "Authorization: $AUTH_KEY" \ | |
-d "{\"applicationId\":\"$APP_ID\",\"messageId\":\"$MESSAGE_TEMPLATE_ID\",\"from\":\"$SENDER_NAME\",\"to\":\"$MOBILE\"}" \ |
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
AUTH_KEY= | |
SENDER_NAME= | |
MOBILE= | |
TEXT="HELLO TEST LINE 1\nHELLO TEST LINE 2" | |
# Basic Implementation | |
curl -X POST -H "Content-Type: application/json" \ | |
-H "Authorization: $AUTH_KEY" \ | |
-d "{\"from\":\"$SENDER_NAME\",\"to\":\"$MOBILE\",\"text\":\"$TEXT\"}" \ |
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
API_KEY= | |
curl -s -H "X-CMC_PRO_API_KEY: $API_KEY" -H "Accept: application/json" -d "start=1&limit=5000&convert=USD" -G https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest > result.json | |
cat result.json | jq '.data[0].symbol' | |
cat result.json | jq '.data[0].quote.USD.price' | |
echo "" | |
cat result.json | jq '.data[1].symbol' | |
cat result.json | jq '.data[1].quote.USD.price' | |
echo "" | |
cat result.json | jq '.data[2].symbol' |
OlderNewer