chatMessageDeletePost
Retrieve & Delete
Searches the database according to the message ID, and deletes the message in question
/chat/MessageDelete
Usage and SDK Samples
curl -X POST "https://glap.fr/api/v1/chat/MessageDelete?id_message="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChatApi;
import java.io.File;
import java.util.*;
public class ChatApiExample {
public static void main(String[] args) {
ChatApi apiInstance = new ChatApi();
String idMessage = idMessage_example; // String | ID of message
try {
apiInstance.chatMessageDeletePost(idMessage);
} catch (ApiException e) {
System.err.println("Exception when calling ChatApi#chatMessageDeletePost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ChatApi;
public class ChatApiExample {
public static void main(String[] args) {
ChatApi apiInstance = new ChatApi();
String idMessage = idMessage_example; // String | ID of message
try {
apiInstance.chatMessageDeletePost(idMessage);
} catch (ApiException e) {
System.err.println("Exception when calling ChatApi#chatMessageDeletePost");
e.printStackTrace();
}
}
}
String *idMessage = idMessage_example; // ID of message
ChatApi *apiInstance = [[ChatApi alloc] init];
// Retrieve & Delete
[apiInstance chatMessageDeletePostWith:idMessage
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ApiDeGlap = require('api_de_glap');
var api = new ApiDeGlap.ChatApi()
var idMessage = idMessage_example; // {String} ID of message
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.chatMessageDeletePost(idMessage, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class chatMessageDeletePostExample
{
public void main()
{
var apiInstance = new ChatApi();
var idMessage = idMessage_example; // String | ID of message
try
{
// Retrieve & Delete
apiInstance.chatMessageDeletePost(idMessage);
}
catch (Exception e)
{
Debug.Print("Exception when calling ChatApi.chatMessageDeletePost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\ChatApi();
$idMessage = idMessage_example; // String | ID of message
try {
$api_instance->chatMessageDeletePost($idMessage);
} catch (Exception $e) {
echo 'Exception when calling ChatApi->chatMessageDeletePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChatApi;
my $api_instance = WWW::SwaggerClient::ChatApi->new();
my $idMessage = idMessage_example; # String | ID of message
eval {
$api_instance->chatMessageDeletePost(idMessage => $idMessage);
};
if ($@) {
warn "Exception when calling ChatApi->chatMessageDeletePost: $@\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.ChatApi()
idMessage = idMessage_example # String | ID of message
try:
# Retrieve & Delete
api_instance.chat_message_delete_post(idMessage)
except ApiException as e:
print("Exception when calling ChatApi->chatMessageDeletePost: %s\n" % e)
Parameters
| Name | Description |
|---|---|
| id_message* |
String
ID of message
Required
|