Created
September 18, 2019 11:03
-
-
Save oldthreefeng/e003ce46210fdf121e308d6abd100fe2 to your computer and use it in GitHub Desktop.
This file contains 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 | |
title=$1 | |
messageUrl=$2 | |
picUrl=$4 | |
text=$3 | |
PHONE="158215*****" | |
TOKEN=$5 | |
DING="curl -H \"Content-Type: application/json\" -X POST --data '{\"msgtype\": \"link\", \"link\": {\"messageUrl\": \"${messageUrl}\", \"title\": \"${title}\", \"picUrl\": \"${picUrl}\", \"text\": \"${text}\",}, \"at\": {\"atMobiles\": [${PHONE}], \"isAtAll\": false}}' ${TOKEN}" | |
eval $DING |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment