Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/justyuuto/burger-king-fr-api

A Node wrapper for the french Burger King API (webapi.burgerking.fr)
https://github.com/justyuuto/burger-king-fr-api

api api-wrapper burger-king

Last synced: 4 days ago
JSON representation

A Node wrapper for the french Burger King API (webapi.burgerking.fr)

Awesome Lists containing this project

README

        

# Burger King French API wrapper

[![](https://img.shields.io/npm/dm/burger-king-fr-api)](https://www.npmjs.com/package/burger-king-fr-api)
[![](https://img.shields.io/npm/l/burger-king-fr-api)](LICENSE.txt)

A Node wrapper for the French Burger King API (webapi.burgerking.fr).

## Why this project?

I don't even know myself. It's just funny to order Burger King with a node program 💀

## Installation

```bash
npm install burger-king-fr-api
# or with yarn
yarn add burger-king-fr-api
```

## Usage

Ok so first import the library and init the client:

```js
const BKClient = require('burger-king-fr-api');

const client = new BKClient();
```

Then log into your account. You can either log in with an email and a password, or a bearer token (recommended).

```js
await client.login('[email protected]', 'mySecureP@ssword123');
// or
await client.login('eyJhb.............. a bearer token');
```

## License

This package is license under the MIT License. You can view it [here](LICENSE.txt).