1.0.1 • Published 9 years ago
apeman-app-oauthed v1.0.1
apeman-app-oauthed
apeman app to access oauthed data.
Define function in req to access oauthed data.
req.oauthed() -> oauthedreq.oauthed(oauthed)
Installation
$ npm install apeman-app-oauthed --saveUsage
- 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'
module.exports = {
$pkg: { /* ... */ },
$apps: {
// Define your own app.
'my-app-01': {
// Map url and handlers.
'/': [
require('apeman-app-oauthed')({
// Options
})
]
}
}
}Then,
$ apeman app my-app-01 -p 3000Signature
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.