CRUD.php
Constructor
public function __construct($sendUrl, $getMethod, $getHeader, $getData)
API and Examples
$getObj = new CRUD(
"http://localhost/REQUESTMETHOD.php",
"GET",
array("auth" => "keyVal"),
array("opt" => 1, "val" => 1)
);
echo $getObj->response("json");
$postObj = new CRUD(
"http://localhost/REQUESTMETHOD.php",
"POST",
array("auth" => "keyVal"),
array("opt" => 1, "val" => 2)
);
echo $postObj->response("json");
$putObj = new CRUD(
"http://localhost/REQUESTMETHOD.php",
"PUT",
array("auth" => "keyVal"),
array("opt" => 1, "val" => 3)
);
echo $putObj->response("json");
$delObj = new CRUD(
"http://localhost/REQUESTMETHOD.php",
"DELETE",
array("auth" => "keyVal"),
array("opt" => 1, "val" => 4)
);
echo $delObj->response("json");
?>