Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/fujiharuka/sugo-endpoint-caller
- Owner: FujiHaruka
- License: mit
- Created: 2017-04-13T11:25:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-13T13:23:13.000Z (over 7 years ago)
- Last Synced: 2024-09-05T06:43:23.356Z (2 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
})
```