getActiveAntenna
Returns the active antenna
/antennas/active
Usage and SDK Samples
curl -X GET \
-H "Accept: application/json" \
"http://localhost:8080/antennas/active"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AntennasApi;
import java.io.File;
import java.util.*;
public class AntennasApiExample {
public static void main(String[] args) {
// Create an instance of the API class
AntennasApi apiInstance = new AntennasApi();
try {
Antenna result = apiInstance.getActiveAntenna();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AntennasApi#getActiveAntenna");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.AntennasApi;
public class AntennasApiExample {
public static void main(String[] args) {
AntennasApi apiInstance = new AntennasApi();
try {
Antenna result = apiInstance.getActiveAntenna();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AntennasApi#getActiveAntenna");
e.printStackTrace();
}
}
}
// Create an instance of the API class
AntennasApi *apiInstance = [[AntennasApi alloc] init];
[apiInstance getActiveAntennaWithCompletionHandler:
^(Antenna output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var Rfkit = require('rfkit');
// Create an instance of the API class
var api = new Rfkit.AntennasApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getActiveAntenna(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getActiveAntennaExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new AntennasApi();
try {
Antenna result = apiInstance.getActiveAntenna();
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling AntennasApi.getActiveAntenna: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AntennasApi();
try {
$result = $api_instance->getActiveAntenna();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AntennasApi->getActiveAntenna: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AntennasApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AntennasApi->new();
eval {
my $result = $api_instance->getActiveAntenna();
print Dumper($result);
};
if ($@) {
warn "Exception when calling AntennasApi->getActiveAntenna: $@\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.AntennasApi()
try:
api_response = api_instance.get_active_antenna()
pprint(api_response)
except ApiException as e:
print("Exception when calling AntennasApi->getActiveAntenna: %s\n" % e)
extern crate AntennasApi;
pub fn main() {
let mut context = AntennasApi::Context::default();
let result = client.getActiveAntenna(&context).wait();
println!("{:?}", result);
}