-
-
Save net1/f2f936faffde9eacdf1c1a00c9382a7e to your computer and use it in GitHub Desktop.
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 | |
) | |
# Basic Implementation | |
curl -X POST -H "Authorization: Bearer $LINE_NOTIFY_ACCESS_TOKEN" -d "&message=$MESSAGE" "https://notify-api.line.me/api/notify" | |
# # Send Sticker Too | |
# curl -X POST -H "Authorization: Bearer $LINE_NOTIFY_ACCESS_TOKEN" -d "&message=$MESSAGE" -d "stickerPackageId=1" -d "stickerId=407" "https://notify-api.line.me/api/notify" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment