Quick start
First, import the Connector from the lcu_connector module, instantiate it and start the session via the .start() method or passing the start=True parameter directly in the instance.
from lcu_connector import Connector# Method 01conn = Connector(start=True)# Method 02conn = Connector()conn.start()Now have fun, the Connector object has the same attributes as the requests library and derivatives.
from lcu_connector import Connectorconn = Connector(start=True)# Getting the data of the currently connected summonerres = conn.get('/lol-summoner/v1/current-summoner')print(res.json())# Getting a summoner's data by namesummoner_name = 'JohnDoe'res = conn.get('/lol-summoner/v1/summoners?name={summoner_name}')print(res.json())# Performing POST requestdata = { 'foo': 'bar'}res = conn.post('API_URL', data=data)if res.status_code == 200: do_something()conn.stop()