Skip to content

ericabouaf/mogy-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mogy-http

HTTP Request Activity for mogy.

Installation

In your mogy project, install the dependency using npm :

$ npm install mogy-http --save

To register the http activity to Amazon Simple Workflow :

$ mogy register

Config

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'
        }
    }
})

About

HTTP Request Activity for Mogy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published