From 7e31c13ec03c7ee7ddf7c463a4e4f76f0798b1a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl?= <41128238+raphckrman@users.noreply.github.com> Date: Fri, 1 Mar 2024 12:51:56 +0100 Subject: [PATCH 1/3] Update README.md --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3a48f37..db97f90 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,11 @@ -# turboself-api -A wrapper around Turboself internal API. +# Usage +```javascript +const TurboSelf = require('turboself-api') + +async function main() { + let client = await TurboSelf.authTurboselfWithCredentials("your_email", "your_password") + console.log(result) +} + +main() +``` From d42a3d487284a9a211e7ca66f090059ea6deec98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl?= <41128238+raphckrman@users.noreply.github.com> Date: Fri, 1 Mar 2024 13:05:29 +0100 Subject: [PATCH 2/3] Update README.md --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index db97f90..1f8b610 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,22 @@ -# Usage +# 🔧 Utilisation +### Connexion par identifiants ```javascript const TurboSelf = require('turboself-api') async function main() { let client = await TurboSelf.authTurboselfWithCredentials("your_email", "your_password") - console.log(result) + console.log(client) +} + +main() +``` +### Réserver un déjeuner pour lundi prochain +```javascript +const TurboSelf = require('turboself-api') + +async function main() { + let client = await TurboSelf.authTurboselfWithCredentials("your_email", "your_password") + client.bookDay(1, await client.getCurrentBookingWeekNumber()+1, 1) } main() From fa9c348f681345001f1c90be882e2132b172b74e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl?= <41128238+raphckrman@users.noreply.github.com> Date: Fri, 1 Mar 2024 13:08:46 +0100 Subject: [PATCH 3/3] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 1f8b610..27c5a26 100644 --- a/README.md +++ b/README.md @@ -21,3 +21,6 @@ async function main() { main() ``` + +### Autre exemples +Pour voir d'autre exemples d'utilisation, vous pouvez regarder le dossier ``examples``