Created
May 16, 2017 07:02
-
-
Save JagCesar/94e4a2f91d876d8ae2119f70e12ce1ad to your computer and use it in GitHub Desktop.
Push Me bash script
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/sh | |
message="$1" | |
curl -so \ | |
- --data "title=$message&token=[token-here]" \ | |
https://pushmeapi.jagcesar.se | |
Just in case anyone needs to run this on Windows here is a command shell example:
C:\Windows\System32\curl.exe -o NUL -s -d "title=Text Message&token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -X POST https://pushmeapi.jagcesar.se
@Nocube I don't speak python ๐, but thanks for sharing that snippet with the community! I took the liberty to modify your comment and make it render as code. Feel free to edit it accordingly. Have a nice day!
@Nocube I don't speak python ๐, but thanks for sharing that snippet with the community! I took the liberty to modify your comment and make it render as code. Feel free to edit it accordingly. Have a nice day!
Thanks Jag.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I made a Python Post function, as curl is not available on all my platforms. I thought it might be helpful to others. Many thanks for this awesome app!
Dano.
I forked the code for my python version of the Push Me Script:
https://gist.github.com/Nocube/0b63a165f9267b721924d58a81b006f6