Created
January 8, 2019 11:57
-
-
Save tomaszklim/9be1f0b1ae3a50625d5ac1960e9120a5 to your computer and use it in GitHub Desktop.
Get the list of Uptimerobot.com checks
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 | |
api="u123456-qa9oic80zsll1xi0fhbwso1" | |
offset=$1 | |
if [ "$offset" = "" ]; then | |
offset=0 | |
fi | |
curl -s -X POST \ | |
-H "Content-Type: application/x-www-form-urlencoded" \ | |
-H "Cache-Control: no-cache" \ | |
-d "api_key=$api&format=json&logs=0&alert_contacts=1&limit=50&offset=$offset" \ | |
"https://api.uptimerobot.com/v2/getMonitors" |python -m json.tool |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment