Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Jakub-Wilk/multicraft-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multicraft-api

What it is

multicraft-api is a Python port of the Multicraft API Interface.

Installation

pip install multicraft-api

Usage

From example.py:

from multicraftapi import MulticraftAPI


# Arguments: (url, username, api_key)
client = MulticraftAPI("http://example.com/multicraft/api.php",  "Example_Username",  "3X4MP134P1K3Y")

# Arguments: (function, *args)
response =  client("getServerStatus",  "123456")

# Response is always JSON in form {'success': <success_status>, 'errors': [<errors>], 'data':[<returned data>]}
print(response)

For more information, including all the functions and their args, please refer to the wiki.

About

The Multicraft API ported to Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages