getMessage
/message
Usage and SDK Samples
curl -X GET \
-H "Accept: */*" \
"https://localhost:8443/message"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BackendApplicationApi;
import java.io.File;
import java.util.*;
public class BackendApplicationApiExample {
public static void main(String[] args) {
// Create an instance of the API class
BackendApplicationApi apiInstance = new BackendApplicationApi();
try {
'String' result = apiInstance.getMessage();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BackendApplicationApi#getMessage");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.BackendApplicationApi;
public class BackendApplicationApiExample {
public static void main(String[] args) {
BackendApplicationApi apiInstance = new BackendApplicationApi();
try {
'String' result = apiInstance.getMessage();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BackendApplicationApi#getMessage");
e.printStackTrace();
}
}
}
// Create an instance of the API class
BackendApplicationApi *apiInstance = [[BackendApplicationApi alloc] init];
[apiInstance getMessageWithCompletionHandler:
^('String' output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var OpenApiDefinition = require('open_api_definition');
// Create an instance of the API class
var api = new OpenApiDefinition.BackendApplicationApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getMessage(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getMessageExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new BackendApplicationApi();
try {
'String' result = apiInstance.getMessage();
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling BackendApplicationApi.getMessage: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BackendApplicationApi();
try {
$result = $api_instance->getMessage();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BackendApplicationApi->getMessage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BackendApplicationApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BackendApplicationApi->new();
eval {
my $result = $api_instance->getMessage();
print Dumper($result);
};
if ($@) {
warn "Exception when calling BackendApplicationApi->getMessage: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.BackendApplicationApi()
try:
api_response = api_instance.get_message()
pprint(api_response)
except ApiException as e:
print("Exception when calling BackendApplicationApi->getMessage: %s\n" % e)
extern crate BackendApplicationApi;
pub fn main() {
let mut context = BackendApplicationApi::Context::default();
let result = client.getMessage(&context).wait();
println!("{:?}", result);
}