Delete Server Widget

This operation let you send HTTP request for deleting a widget previously created with Server Widgets API.

Request Parameters: 
  • app_id  - the application Id. Unless you set dedicated application use this value: "server_widgets"  
  • api_key - The API key assigned to service provider.  For trial version use this value:  "demo_developer-prod"

Path parameter:

  • widget_id - the Id of the widget to delete
Sample Code: 

$widgetId = [widget id];
$params = array(
    "app_id" => "[APP ID]",
    "api_key" => "[API KEY]",

$serviceUrl = "{$widgetId}";

$error = "";
$response = NetUtils::curlDELETE($serviceUrl, $params, $error);

echo "<h1?>>Test Widget Create</h1?>";
echo "<pre?>";
echo $response;
echo "</pre?>";

if (!empty($error)) {
    echo $error;
Sample Response: