0.3.2 • Published 6 years ago

fainter v0.3.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Fainter

Coverage Status

Simple, adaptive eleme openapi sdk which is easy to use.

Quickstart

npm install fainter --save

Testing fainter

cd /path/to/fainter
npm install
npm test

Example

for individual app

const Fainter = require('Fainter');

let account = {
  appKey: 'key',
  appSecret: 'secret',
  env: 'production'
};

let fainter = new Fainter(account);

fainter.applyIndividualToken().then(token => {
  fainter.setToken(token.access_token)
  fainter.invoke('eleme.user.getUser')
    .then(res => console.log(res))
    .catch(err => console.log(err))
})

relative api reference

eleme openapi documentation

PS

饿了么服务市场欢迎广大有能力有想法的开发者入驻🤗

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago