Commit d72f23d0 authored by Maël Kervella's avatar Maël Kervella

Basic API interaction

parent 031bef90
[Re2o]
hostname = re2o-dev.rez-rennes.fr
username = moamoak
password = motdepasse
from configparser import ConfigParser
from re2oapi import Re2oAPIClient
config = ConfigParser()
config.read('config.ini')
hostname = config.get('Re2o', 'hostname')
password = config.get('Re2o', 'password')
username = config.get('Re2o', 'username')
api_client = Re2oAPIClient(hostname, username, password)
extensions = api_client.list_extensions()
print(len(extensions))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment