2.1.0 • Published 2 years ago

jsonbin-io-api v2.1.0

Weekly downloads
69
License
MIT
Repository
github
Last release
2 years ago

Zero dependencies NodeJs Api for jsonbin.io v3

Install

npm i jsonbin-io-api --save

Using

import {JsonBinIoApi} from 'jsonbin-io-api';
const api = new JsonBinIoApi('your-secret-key');

create bin

api.bins.create({
  record: {sample: 'Hello World'},
  binName: 'test'
})
.then(console.log);

read bin

api.bins.read({
  binId: 'some-bin-id'
})
.then(console.log);

update bin

api.bins.update({
  binId: 'some-bin-id',
  record: {sample: 'Hello World again!'}
})
.then(console.log);

delete bin

api.bins.delete({
  binId: 'some-bin-id'
})
.then(console.log);

More examples

More examples in examples dir

2.1.0

2 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

6 years ago