Uptime Robot API (READ DESCRIPTION FOR USAGE INSTRUCTIONS)
How this all came together
Which is ok, but, well, you kind of have to type out "uptimerobot.com" in the search bar every single time you want to check on your bots.
Which is ok, but pretty soon you'll reduce your fingers into painful stubs because of overtyping.
Which is ok, but if you're like me and you bring your computer to school, you'll soon see that every single time you switch IP addresses, you'll have to re-login.
Which is ok, but pretty soon you'll start thinking of a better way.
And thats how UptimeRobotAPI was created - All in Vanilla Python!.
Step 1: A journey of a million miles begins with one step
Copy the entire contents of "main.py" into a file of your choosing. Then in your "main.py", to import the API, type the following:
Step 2: Initiating the client
Next, to create the client, you'll have to get your API secret.
To get your API key, first go to uptimerobot.com. Then, go to your settings. Then, scroll all the way down until you see the header "API Settings". Go down to the sub-header "Main API Key" and click create the main API key, and then copy to clipboard
Step 3: Using the Client
After you got the API key in your clipboard, type the following:
Step 4: Using the Client cont.
Now, let's actually do something! Type the following code to list how many online monitors you have:
Wow, cool, right?
Step 5: Creating Monitors
Now, let's create a monitor! You know what to do...
Woah! You're becoming an eXpErT HaCkER!
Step 6: Deleting, Pausing, and Resuming Monitors
Deleting, pausing, and resuming monitors is pretty straight forward.
Step 7: Changing a Monitor's URL
Now for something different! To change a Monitor's URL, do the following:
Congratulations! You've learned everything about my UptimeRobotAPI! WOOHOO!!!!!!!!!!!!!!!!
Btw, I'll be making a discord bot with all of these features (and more!), so stay tuned!
OMG guys, thanks for the upvotes \(OwO)/
don't use camelCase in python! NEVER CAMELCASE! I REPEAT: NEVER USE CAMELCASE IN A PYTHON PROGRAM! CAMELCASE IS NOT FOR PYTHON! NEVER DO THIS! cool project, by the way.
@Zexogon but you don't use it in python.
From PEP 8:
Function names should be lowercase, with words separated by underscores as necessary to improve readability.
Variable names follow the same convention as function names.
mixedCase is allowed only in contexts where that's already the prevailing style (e.g. threading.py), to retain backwards compatibility.