knack-connection-plugin
v1.0.3
Published
this plugin facilitates the connection between Knack and node applications
Downloads
4
Readme
Install plugin
// node script install plugin
$>_ npm install knack-connection-plugin
// package.json
{
"dependencies": {
"knack-connection-plugin": "^1.0.1"
}
}
include plugin in your projects
let knackMT = require('knack-connection-plugin').knackMT;
example usage method : create
knackMT.create({
url : "{knack-url-path}",
filters : false,
data : {knack-payload},
success : function(response){
// code
},
error : function(error, xhr){
// error code execute after retry
}
}).retry({retry_integer_num});
example usage method : update
let _filters = JSON.stringify({});
knackMT.update({
url : "{knack-url-path}",
filters : _filters,
data : {knack-payload},
success : function(response){
// code
},
error : function(error, xhr){
// error code execute after retry
}
}).retry({retry_integer_num});
example usage method : render
let _filters = JSON.stringify({});
knackMT.render({
url : "{knack-url-path}",
filters : _filters,
data : {knack-payload},
success : function(response){
// code
},
error : function(error, xhr){
// error code execute after retry
}
}).retry({retry_integer_num});
example usage method : get
let _filters = JSON.stringify({});
knackMT.get({
url : "{knack-url-path}",
filters : _filters,
data : {knack-payload},
success : function(response){
// code
},
error : function(error, xhr){
// error code execute after retry
}
}).retry({retry_integer_num});