Created
October 6, 2016 02:49
-
-
Save tkuchiki/27fb971eba1222313e4108b517a50b71 to your computer and use it in GitHub Desktop.
Slack の API で DM を送る
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/bash | |
TOKEN="your api token" | |
# channel=@SLACK_USERNAME で DM を送れる | |
SLACK_USERNAME="@SLACK_USERNAME" | |
MSG="${1}" | |
curl -XPOST "https://slack.com/api/chat.postMessage?token=${TOKEN}&channel=${SLACK_USERNAME}&text=${MSG}&username=notify" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment