0.2.2 • Published 5 years ago

esa-node v0.2.2

Weekly downloads
17
License
MIT
Repository
-
Last release
5 years ago

esa-node

npm version

esa.io API v1 client library for nodejs.

Installation

via npm

$ npm install --save esa-node

via yarn

$ yarn add esa-node

Supported methods

  • teams
  • team
  • members
  • posts
  • post(post_number)
  • create_post
  • comments
  • comment
  • invitation
  • user

Example

// 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()

Contributing

  1. Fork it ( https://github.com/mottox2/esa-node/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Links

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago