apeman-app-oauthed
apeman app to access oauthed data.
Define function in req to access oauthed data.
req.oauthed() -> oauthed
req.oauthed(oauthed)
Installation
$ npm install apeman-app-oauthed --save
Usage
- Define an app within Apemanfile.js
- Call the app via apeman app command.
Apemanfile.js
/** This is an example Apemanfile to use apeman-app-oauthed */ 'use strict' moduleexports = $pkg: /* ... */ $apps: // Define your own app. 'my-app-01': // Map url and handlers. '/': // Options
Then,
$ apeman app my-app-01 -p 3000
Signature
apemanAppOauthed(options) -> function
apeman app to access oauthed data.
Args
Name | Type | Default | Description |
---|---|---|---|
options | object | Optional settings. | |
options.name | string | oauthed | Property name of request to set the function. |
License
This software is released under the MIT License.