Skip to content

This repository contains the files which give you an example of how to do an HTTPS request using the exaroton API in Python.

License

Notifications You must be signed in to change notification settings

Alex22sv/exaroton-HTTPSrequests-inPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Information about this repository.

This repository contains files that give you an example of how to do HTTPS requests using the exaroton API and Python. You can check the exaroton API documentation here.

Requirements

  1. aiohttp

How to use "GET" in HTTPS requests using Python?

First of all you need to add your API token in the python file. Other files require a server ID to get logs, RAM, or other options of that server. After adding your API token and (in case that it's needed) your server ID, you can simply execute the Python file.

How to use "POST" in HTTPS requests using Python?

All files require your API token and server ID in order to work. If you want to change the server RAM, you need to open the ChangeServerRAM-example.py file and change the "ram" parameter to the new amount of RAM (in GB) that you want, now you just need to execute the file.

image

If you want to execute a Minecraft command you can open the ExecuteServerCommand-example.py file and change the "command" parameter to the one that you want to execute, then just execute the Python file.

image

How to get your API token on exaroton?

You can find your API token on your exaroton account settings. image

How to get your server ID?

You can see your server ID on the "Servers" page below the server name or any server page on the left below the server name. The server ID starts with a #:

image

Note: you don't need to add the # on your serverID.

About

This repository contains the files which give you an example of how to do an HTTPS request using the exaroton API in Python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages