Class: get

Adaptor~get(path, params, callback) → {Operation}

new get(path, params, callback) → {Operation}

Make a GET request
Parameters:
Name Type Description
path string Path to resource
params object Query, Headers and Authentication parameters
callback function (Optional) Callback function
Source:
Returns:
Type
Operation
Example
get("/myendpoint", {
     query: {foo: "bar", a: 1},
     headers: {"content-type": "application/json"},
     authentication: {username: "user", password: "pass"}
   },
   function(state) {
     return state;
   }
 )