From 4772fbd343917a12918673686ce060385ad67e37 Mon Sep 17 00:00:00 2001 From: Waz0x Date: Mon, 16 Aug 2021 13:08:25 +0200 Subject: [PATCH] MOD | readme --- README.md | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 0447f78..30ba1b3 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,19 @@ -# IMPORTANT: -This is a rewrite of Wrapitech with the new Oauth2 from the intra go check [here](https://github.com/Epiteks/Wrapitech) +# EpiWrap -##Usage -main route: -````html -https://etipech.eu/api -```` +This is a wrapper for the epitech intranet 'api' -Info route ``/v1/infos`` -```` -arguments: - token * -```` +You can see here some examples: -Info route ``/v1/planning`` -```` -arguments: - token * - start_time: format: year-month-day (optional) - end_time: format: year-month-day (optional) +````python +import epiwrap + +client = epiwrap.EpiWrap("your token here") + +user = client.getProfile() + +print("Name: " + user.fullname + "\nCredits: " + str(user.credits)) ```` -`*` = mendatory argument ## How to get your token ?