esa.io API v1 client library for nodejs.
via npm
$ npm install --save esa-node
via yarn
$ yarn add esa-node
- teams
- team
- members
- posts
- post(post_number)
- create_post
- comments
- comment
- invitation
- user
// Setup
import Esa from 'esa-node'
const esa = new Esa('access_token', 'teamName')
// Fetch posts
const res = await esa.posts()
console.log(res.posts)
// Change team
const teamResponse = await esa.teams()
esa.setTeam(teamResponse.teams[1].name)
const posts = esa.posts()
- Fork it ( https://github.com/mottox2/esa-node/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request