Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
raphckrman committed Mar 1, 2024
2 parents 458c66f + fa9c348 commit 68216ad
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,26 @@
# turboself-api
A wrapper around Turboself internal API.
# 🔧 Utilisation
### Connexion par identifiants
```javascript
const TurboSelf = require('turboself-api')

async function main() {
let client = await TurboSelf.authTurboselfWithCredentials("your_email", "your_password")
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()
```

### Autre exemples
Pour voir d'autre exemples d'utilisation, vous pouvez regarder le dossier ``examples``

0 comments on commit 68216ad

Please sign in to comment.