API
Make calls to eKansio API
Make calls to eKansio API
$Api = $this->get('api', Array(
'host' => $domain,
'password' => $password,
'username' => $username
));
$customer = $Api->get('table/customer/record/'.$id)->getResponseData();
Get name of 10 newest active customers:
$customers = $Api->get('table/customer/records',Array(
'select' => 'id,name,created_at',
'where' => Array(
'status' => 'Active'
)
'order' => 'created_at newest',
'limit' => 10
))->getResponseData();
$customer = $Api->post('table/customer/record/addnew',Array(
'data' => Array(
'name' => 'Customer name'
)
));
$customer = $Api->post('table/customer/record/'.$id,Array(
'data' => Array(
'name' => 'Customer new name'
)
));