deleteComment
/comment
Usage and SDK Samples
curl -X DELETE\
-H "Authorization: Bearer [[accessToken]]"\
-H "Accept: */*"\
"http://localhost:8080/comment?commentId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CommentControllerApi;
import java.io.File;
import java.util.*;
public class CommentControllerApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
CommentControllerApi apiInstance = new CommentControllerApi();
Long commentId = 789; // Long |
try {
ResultBoolean result = apiInstance.deleteComment(commentId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CommentControllerApi#deleteComment");
e.printStackTrace();
}
}
}
import io.swagger.client.api.CommentControllerApi;
public class CommentControllerApiExample {
public static void main(String[] args) {
CommentControllerApi apiInstance = new CommentControllerApi();
Long commentId = 789; // Long |
try {
ResultBoolean result = apiInstance.deleteComment(commentId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CommentControllerApi#deleteComment");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
Long *commentId = 789; //
CommentControllerApi *apiInstance = [[CommentControllerApi alloc] init];
[apiInstance deleteCommentWith:commentId
completionHandler: ^(ResultBoolean output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var TravelPlanApi_ = require('travel_plan_api_');
var defaultClient = TravelPlanApi_.ApiClient.instance;
var api = new TravelPlanApi_.CommentControllerApi()
var commentId = 789; // {{Long}}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.deleteComment(commentId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class deleteCommentExample
{
public void main()
{
var apiInstance = new CommentControllerApi();
var commentId = 789; // Long |
try
{
ResultBoolean result = apiInstance.deleteComment(commentId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CommentControllerApi.deleteComment: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiCommentControllerApi();
$commentId = 789; // Long |
try {
$result = $api_instance->deleteComment($commentId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CommentControllerApi->deleteComment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CommentControllerApi;
my $api_instance = WWW::SwaggerClient::CommentControllerApi->new();
my $commentId = 789; # Long |
eval {
my $result = $api_instance->deleteComment(commentId => $commentId);
print Dumper($result);
};
if ($@) {
warn "Exception when calling CommentControllerApi->deleteComment: $@\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.CommentControllerApi()
commentId = 789 # Long |
try:
api_response = api_instance.delete_comment(commentId)
pprint(api_response)
except ApiException as e:
print("Exception when calling CommentControllerApi->deleteComment: %s\n" % e)
Parameters
Name | Description |
---|---|
commentId* |
Long
(int64)
Required
|