0.18.6 • Published 2 years ago
breakout-api-client v0.18.6
An API client for the breakout api written in JS
Usage example
Install the dependency as follows:
npm install --save breakout-api-client
And use it like this:
const BreakoutApi = require("breakout-api-client");
const debug = true;
const api = new BreakoutApi("http://localhost:8082", "client_app", "123456789", debug);
async function test() {
// Perform login for user with email and password
// A side effect of this operation is that the returned access token
// is saved in this instance of the class BreakoutApi, so that all following
// requests are authenticated with the users access_token
try {
await api.login("sponsor@example.com", "test");
const me = await api.getMe();
console.log(me); // Information about the currently logged in user
} catch (err) {
console.log(err.message);
console.log(err.response.data);
}
}
test();
0.18.4
2 years ago
0.18.6
2 years ago
0.18.3
3 years ago
0.18.1
5 years ago
0.18.0
5 years ago
0.17.2
5 years ago
0.17.1
5 years ago
0.17.0
5 years ago
0.16.4
5 years ago
0.16.2
5 years ago
0.16.1
5 years ago
0.16.0
5 years ago
0.15.2
5 years ago
0.15.1
5 years ago
0.11.0
6 years ago
0.10.0
6 years ago
0.9.0
6 years ago
0.8.3
6 years ago
0.8.2
6 years ago
0.8.1
6 years ago
0.8.0
6 years ago
0.7.0
6 years ago
0.6.1
6 years ago
0.6.0
6 years ago
0.5.0
6 years ago
0.4.0
6 years ago
0.3.1
6 years ago
0.3.0
6 years ago
0.2.0
6 years ago
0.1.0
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago