0.1.0 • Published 11 years ago
mogy-http v0.1.0
mogy-http
HTTP Request Activity for mogy.
Installation
In your mogy project, install the dependency using npm :
$ npm install mogy-http --saveTo register the http activity to Amazon Simple Workflow :
$ mogy registerConfig
The config for this activity is optional. It allows to override request options for all http activities.
In your mogy environment config file, under the activities key, add :
"http": {
/*"proxy": {
}*/
}Cf https://github.com/request/request to see the options.
Sample Decider Usage
activity({
name: 'my-task',
activity: 'http',
input: {
method: 'POST',
uri: 'http://requestb.in/1bhxg1v1',
form:{
key:'value'
}
}
})0.1.0
11 years ago