Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fujiharuka/sugo-endpoint-caller

Client for sugo-endpoint-caller
https://github.com/fujiharuka/sugo-endpoint-caller

Last synced: 5 days ago
JSON representation

Client for sugo-endpoint-caller

Awesome Lists containing this project

README

        

# sugo-endpoint-caller

Client for [sugo-enpoint-actor](https://github.com/realglobe-Inc/sugo-endpoint-actor).

## Usage

```js
const EndpointCaller = require('sugo-endpoint-caller')
const co = require('co')

co(function * () {
let actor = new EndpointCaller({
pathname: '/api'
})
let api = actor.get('greeting')
let hello = yield api.hello({ message: 'hoge' })
console.log(hello)
})
```