apeman-api-client
Client for apeman api
Last updated 2 years ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install apeman-api-client 
SYNC missed versions from official npm registry.

apeman-api-client

Build Status Code Climate Code Coverage npm Version JS Standard

Client for apeman api

Installation

$ npm install apeman-api-client --save

Usage

#!/usr/bin/env node

/**
 * This is an example of rfunc client
 */
'use strict'

const apemanApi = require('apeman-api-client')
const co = require('co')

co(function * () {
  let api = apemanApi('http://myapp.example.com')
  
  let sign = yield api.connect('sign') // Define a client

  // Call remote api and receive the result
  let { success } = yield sign.signin('foo', 'bar1234')
  console.log('success:', success)

  {
    // Access to scoped api
    let admin = api.of('@admin')
    let user = admin.user()
    yield user.destroy(1)
    /* ... */
  }
}).catch((err) => console.error(err))

License

This software is released under the MIT License.

Links

Current Tags

  • 1.1.2                                ...           latest (2 years ago)

20 Versions

  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.19                                ...           2 years ago
  • 1.0.18                                ...           2 years ago
  • 1.0.17                                ...           2 years ago
  • 1.0.16                                ...           2 years ago
  • 1.0.15                                ...           2 years ago
  • 1.0.14                                ...           2 years ago
  • 1.0.13                                ...           2 years ago
  • 1.0.12                                ...           2 years ago
  • 1.0.11                                ...           2 years ago
  • 1.0.10                                ...           2 years ago
  • 1.0.9                                ...           2 years ago
  • 1.0.8                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 40
Last Day 0
Last Week 40
Last Month 41
Dependencies (6)
Dev Dependencies (14)

Copyright 2014 - 2017 © taobao.org |