0.0.26 • Published 6 years ago
medusa-lib v0.0.26
medusa-lib
Medusa API Wrapper
Install
$ yarn add medusa-lib
Usage
const Medusa = require('medusa-lib');
const medusa = new Medusa({ url: 'http://localhost:8081/' });
// Authentication will last as long as the JWT expiry
// By default Medusa ships with a 24 hour expiry
medusa.auth({ username: 'OmgImAlexis', password: 'SuperStrongPassword!' });
// If you need longer than 24 hours and don't want to store
// the user's credentials we suggest trying the apiKey method for now
medusa.auth({ apiKey: 'sample-api-key' });
medusa.config({ torrents: { enabled: false } }).then(config => console.log(config));
// { torrents: { enabled: false } }
medusa.config().then(config => console.log(config.torrents.enabled));
// { torrents: { enabled: false } }
License
MIT © Alexis Tyler
0.0.26
6 years ago
0.0.25
6 years ago
0.0.24
6 years ago
0.0.23
6 years ago
0.0.22
6 years ago
0.0.21
6 years ago
0.0.20
6 years ago
0.0.19
6 years ago
0.0.18
6 years ago
0.0.17
6 years ago
0.0.16
6 years ago
0.0.15
6 years ago
0.0.14
6 years ago
0.0.13
6 years ago
0.0.12
6 years ago
0.0.11
6 years ago
0.0.10
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
7 years ago
0.0.1
7 years ago