Evan,
I dont know what am i doing wrong.here is the action i have
exports.action = {
name: "params.js",
description: "params",
authenticated:false,
inputs: {
required: [],
optional: ["thing"],
},
blockedConnectionTypes: [],
outputExample: {},
version: 1.0,
run: function(api, connection, next){
// console.dir(connection.rawConnection);
connection.response.params = connection.params;
console.log(connection.params);
console.log("hello:",connection.params.thing);
next(connection, true);
}
};
and when i curl
this is the response i am getting
{
"params": {
"action": "params",
"limit": 100,
"offset": 0,
"apiVersion": 1
},
"serverInformation": {
"serverName": "Brainstorm API Server",
"apiVersion": "0.0.1",
"requestDuration": 3,
"currentTime": 1392085067560
},
"requesterInformation": {
"id": "65794f846721902e2440eaf2eced26ceffe71f2f",
"remoteIP": "127.0.0.1",
"receivedParams": {
"action": "params",
"limit": 100,
"offset": 0,
"apiVersion": 1
}
}
}
Appriciate any help.
Thanks
Azeet