push2bullet.sh
#!/bin/bash
AccessToken=[MyPushbulletAccessToken]
curl --header "Access-Token: ${AccessToken}" \
--header 'Content-Type: application/json' \
--data-binary "{\"body\": \"$2\" ,\"title\": \"$1\" ,\"type\":\"note\"}" \
--request POST \
https://api.pushbullet.com/v2/pushes
使用例
./push2bullet.sh Title MessageBody
No comments:
Post a Comment