delete
Deletes announcement
/polling/announcement/by-uuid/{uuid}
Usage and SDK Samples
curl -X DELETE\
-H "Accept: application/json"\
"/gw/notification-polling-server/polling/announcement/by-uuid/{uuid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NotificationPollingAnnouncementAPIApi;
import java.io.File;
import java.util.*;
public class NotificationPollingAnnouncementAPIApiExample {
public static void main(String[] args) {
NotificationPollingAnnouncementAPIApi apiInstance = new NotificationPollingAnnouncementAPIApi();
String uuid = uuid_example; // String |
try {
HvlResponseVoid result = apiInstance.delete(uuid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotificationPollingAnnouncementAPIApi#delete");
e.printStackTrace();
}
}
}
import io.swagger.client.api.NotificationPollingAnnouncementAPIApi;
public class NotificationPollingAnnouncementAPIApiExample {
public static void main(String[] args) {
NotificationPollingAnnouncementAPIApi apiInstance = new NotificationPollingAnnouncementAPIApi();
String uuid = uuid_example; // String |
try {
HvlResponseVoid result = apiInstance.delete(uuid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotificationPollingAnnouncementAPIApi#delete");
e.printStackTrace();
}
}
}
String *uuid = uuid_example; //
NotificationPollingAnnouncementAPIApi *apiInstance = [[NotificationPollingAnnouncementAPIApi alloc] init];
// Deletes announcement
[apiInstance deleteWith:uuid
completionHandler: ^(HvlResponseVoid output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var HvlNotificationPollingServer = require('hvl_notification_polling_server');
var api = new HvlNotificationPollingServer.NotificationPollingAnnouncementAPIApi()
var uuid = uuid_example; // {{String}}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.delete(uuid, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class deleteExample
{
public void main()
{
var apiInstance = new NotificationPollingAnnouncementAPIApi();
var uuid = uuid_example; // String |
try
{
// Deletes announcement
HvlResponseVoid result = apiInstance.delete(uuid);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling NotificationPollingAnnouncementAPIApi.delete: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiNotificationPollingAnnouncementAPIApi();
$uuid = uuid_example; // String |
try {
$result = $api_instance->delete($uuid);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NotificationPollingAnnouncementAPIApi->delete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::NotificationPollingAnnouncementAPIApi;
my $api_instance = WWW::SwaggerClient::NotificationPollingAnnouncementAPIApi->new();
my $uuid = uuid_example; # String |
eval {
my $result = $api_instance->delete(uuid => $uuid);
print Dumper($result);
};
if ($@) {
warn "Exception when calling NotificationPollingAnnouncementAPIApi->delete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.NotificationPollingAnnouncementAPIApi()
uuid = uuid_example # String |
try:
# Deletes announcement
api_response = api_instance.delete(uuid)
pprint(api_response)
except ApiException as e:
print("Exception when calling NotificationPollingAnnouncementAPIApi->delete: %s\n" % e)
Parameters
Name | Description |
---|---|
uuid* |
String
Required
|