Convenience wrapper for
gotto interact with the HannoverJS API
npm install hannoverjs
const hannoverjs = require('hannoverjs')
hannoverjs('/').then(res => {
console.log(res.body)
})
hannoverjs.getEvents().then(res => {
console.log(res.body)
})It's a GET request by default, but can be changed in options. options are the same as in got, but with some defaults.
Type: string
Default: https://hannoverjs-api.now.sh
Type: Object
Default: { 'user-agent': 'https://github.com/hannoverjs/hannoverjs' }
Type: boolean
Default: true
Returns the response from a custom path.
Type: string
Custom path which will be appended to options.endpoint. Must start with /.
Returns the response from /events.
Returns the response from /talks.
Returns the response from /organizers.