Delete a deal API
0 items $0.00
<?php
include("src/Dealhot.php");
include("config.php");
$deleted = false;
$Dealhot = new Dealhot("","","");
$id = @$_REQUEST["id"];
if(@$_POST["submit"]=="Delete"){
$action = 'deal_delete';
$id = $_POST['id'];
$rest_data = array(
'productID' => $id
);
$Dealhot = new Dealhot($auth_arr,$action,$rest_data);
$result_arr = $Dealhot->go();
$deleted = true;
if($result_arr["result"]=="success")
$msg = 'You have delete the deal successfully';
else if($result_arr["result"]=="fail")
$msg = 'You have failed to deleted the deal. Reason: '.$result_arr["error"];
}
?>
Developer
Deals are on
Deal Ends: 28/05/2014 23:59:59
View more new and active deals