node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey »

@runnerty/executor-http

HTTP executor for Runnerty:

Configuration sample:

{
  "id": "http_default",
  "type": "@runnerty-executor-http"
}

Plan sample:

{
  "id":"http_default",
  "headers":{"User-Agent": "runnerty"},
  "method":"GET",
  "uri":"https://api.github.com/search/repositories",
  "qs":{"q": "runnerty"},
  "json": true
}
{
  "id":"http_default",
  "headers":{"User-Agent": "runnerty"},
  "method":"GET",
  "uri":"https://api.twitter.com/1.1/users/show.json",
  "oauth":
    { "consumer_key": "...",
      "consumer_secret": "...",
      "token": "...",
      "token_secret": "..."
    },
  "qs":{"screen_name": "runnerty"},
  "json": true
}
{
  "id":"http_default",
  "headers":{"User-Agent": "runnerty"},
  "uri":"http://www.sample.com/form",
  "method":"POST",
  "form": {
    "key1": "value1",
    "key2": "value2"
  },
  "json": true
}
{
  "id":"http_default",
  "headers":{"User-Agent": "runnerty"},
  "uri":"http://www.sample.com/uploadfile",
  "method":"POST",
  "files":[{"name":"fileOne", "path":"/var/myfile.txt"},
           {"name":"fileTwo", "path":"/var/www/runnerty.jpg"}],
  "json": true
}
{
  "id":"http_default",
  "headers":{"User-Agent": "runnerty", "Content-Type": "application/xml"},
  "method":"POST",
  "uri":"https://sample.com/api-sample",
  "auth": {
    "user": ":MY_USER_AUTH",
    "pass": ":MY_PASS_AUTH"
  },
  "body": ":SAMPLE_BODY"
}