jsonbin-io-api
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

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

Package Sidebar

Install

npm i jsonbin-io-api

Weekly Downloads

48

Version

2.1.0

License

MIT

Unpacked Size

1.56 kB

Total Files

2

Last publish

Collaborators

  • c-basso