Quick Start
In order to access the API, you must first install the package using pip:
You must then get your Personal details using the web tool, as shown here:
Getting Player Detailsmain.py
This will run, and print the time on the Rust Server.
API methods will return an instance of RustError
if they are not successful. This is to allow for better error handling, and reconnecting to the server. You can detect these by:
main.py
```python time = await socket.get_time() if isinstance(time, RustError): print(f"Error Occurred, Reason: {time.reason}") ```
Last updated