0.24.0 • Published 1 year ago

killbill v0.24.0

Weekly downloads
20
License
Apache-2.0
Repository
github
Last release
1 year ago

killbill-client-js

JavaScript client library for Kill Bill.

It is designed to run both on the client side as well as on the server side (e.g. using node.js).

Codegen

Code is generated using openapi-codegen typescript-axios template.

To regenerate, overwrite kbswagger.yaml and npm run codegen && npm run build

Usage

const killbill = require('killbill');
const globalAxios = require('axios');

const axios = globalAxios.create();

//optional - follow location header when new object is created
axios.interceptors.response.use(killbill.followLocationHeaderInterceptor);

//optional - configure tough cookie support
const tough = require('tough-cookie');
const axiosCookieJarSupport = require('axios-cookiejar-support').default;
axiosCookieJarSupport(axios);
axios.defaults.withCredentials = true;
axios.defaults.jar = new tough.CookieJar();

const config = new killbill.Configuration({
    username: "admin"
    password: "password",
    apiKey: killbill.apiKey("bob", "lazar"),
    basePath: "http://127.0.0.1:8080"
});

new killbill.AccountApi(config, null, axios).getAccountByKey("external_key")
    .then(result => console.log(result))
    .catch(error => console.log(error));
0.24.0

1 year ago

0.24.0-beta.1

1 year ago

0.23.0-beta.1

2 years ago

0.1.0

3 years ago

0.0.1-security

6 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago