Class: post

Adaptor~post(path, params, callback) → {operation}

new post(path, params, callback) → {operation}

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