Skip to content

bakapear/jsonbin.org

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsonbin.org

NodeJS API for jsonbin.org

Example Usage

let key = 'token xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
// or using bearer: key = 'Bearer xxxxxxxxxxxxxxx...'
let bin = require('jsonbin.org')(key)

await bin.post('profile', { name: 'John', age: 21 }) // -> {name: "John", age: 21}
await bin.patch('profile', { age: 36 }) // -> {name: "John", age: 36}
await bin.get('profile/name') // -> "John"
await bin.delete('profile') // -> {}

// You will only get a proper JSON response from the get method!

About

node js api for jsonbin.org

Topics

Resources

License

Stars

Watchers

Forks