Skip to content

Instantly share code, notes, and snippets.

@oldthreefeng
Created September 18, 2019 11:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oldthreefeng/e003ce46210fdf121e308d6abd100fe2 to your computer and use it in GitHub Desktop.
Save oldthreefeng/e003ce46210fdf121e308d6abd100fe2 to your computer and use it in GitHub Desktop.
#!/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