Zero dependencies NodeJs Api for jsonbin.io v3
npm i jsonbin-io-api --save
import {JsonBinIoApi} from 'jsonbin-io-api';
const api = new JsonBinIoApi('your-secret-key');
api.bins.create({
record: {sample: 'Hello World'},
binName: 'test'
})
.then(console.log);
api.bins.read({
binId: 'some-bin-id'
})
.then(console.log);
api.bins.update({
binId: 'some-bin-id',
record: {sample: 'Hello World again!'}
})
.then(console.log);
api.bins.delete({
binId: 'some-bin-id'
})
.then(console.log);
More examples in examples dir