getAlarms
Get the alarms
Get the alarms
/getAlarms
Usage and SDK Samples
curl -X GET\
-H "Accept: application/json"\
"http://192.168.1.3/reslevis/getAlarms?id=&searchString=&skip=&limit="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DevelopersApi;
import java.io.File;
import java.util.*;
public class DevelopersApiExample {
public static void main(String[] args) {
DevelopersApi apiInstance = new DevelopersApi();
String id = id_example; // String | id of the item to get
String searchString = searchString_example; // String | pass an optional search string for looking up inventory
Integer skip = 56; // Integer | number of records to skip for pagination
Integer limit = 56; // Integer | maximum number of records to return
try {
array[AlarmItem] result = apiInstance.getAlarms(id, searchString, skip, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevelopersApi#getAlarms");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DevelopersApi;
public class DevelopersApiExample {
public static void main(String[] args) {
DevelopersApi apiInstance = new DevelopersApi();
String id = id_example; // String | id of the item to get
String searchString = searchString_example; // String | pass an optional search string for looking up inventory
Integer skip = 56; // Integer | number of records to skip for pagination
Integer limit = 56; // Integer | maximum number of records to return
try {
array[AlarmItem] result = apiInstance.getAlarms(id, searchString, skip, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevelopersApi#getAlarms");
e.printStackTrace();
}
}
}
String *id = id_example; // id of the item to get (optional)
String *searchString = searchString_example; // pass an optional search string for looking up inventory (optional)
Integer *skip = 56; // number of records to skip for pagination (optional)
Integer *limit = 56; // maximum number of records to return (optional)
DevelopersApi *apiInstance = [[DevelopersApi alloc] init];
// Get the alarms
[apiInstance getAlarmsWith:id
searchString:searchString
skip:skip
limit:limit
completionHandler: ^(array[AlarmItem] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ResLevisApi = require('res_levis_api');
var api = new ResLevisApi.DevelopersApi()
var opts = {
'id': id_example, // {{String}} id of the item to get
'searchString': searchString_example, // {{String}} pass an optional search string for looking up inventory
'skip': 56, // {{Integer}} number of records to skip for pagination
'limit': 56 // {{Integer}} maximum number of records to return
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getAlarms(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getAlarmsExample
{
public void main()
{
var apiInstance = new DevelopersApi();
var id = id_example; // String | id of the item to get (optional)
var searchString = searchString_example; // String | pass an optional search string for looking up inventory (optional)
var skip = 56; // Integer | number of records to skip for pagination (optional)
var limit = 56; // Integer | maximum number of records to return (optional)
try
{
// Get the alarms
array[AlarmItem] result = apiInstance.getAlarms(id, searchString, skip, limit);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DevelopersApi.getAlarms: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiDevelopersApi();
$id = id_example; // String | id of the item to get
$searchString = searchString_example; // String | pass an optional search string for looking up inventory
$skip = 56; // Integer | number of records to skip for pagination
$limit = 56; // Integer | maximum number of records to return
try {
$result = $api_instance->getAlarms($id, $searchString, $skip, $limit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DevelopersApi->getAlarms: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DevelopersApi;
my $api_instance = WWW::SwaggerClient::DevelopersApi->new();
my $id = id_example; # String | id of the item to get
my $searchString = searchString_example; # String | pass an optional search string for looking up inventory
my $skip = 56; # Integer | number of records to skip for pagination
my $limit = 56; # Integer | maximum number of records to return
eval {
my $result = $api_instance->getAlarms(id => $id, searchString => $searchString, skip => $skip, limit => $limit);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DevelopersApi->getAlarms: $@\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.DevelopersApi()
id = id_example # String | id of the item to get (optional)
searchString = searchString_example # String | pass an optional search string for looking up inventory (optional)
skip = 56 # Integer | number of records to skip for pagination (optional)
limit = 56 # Integer | maximum number of records to return (optional)
try:
# Get the alarms
api_response = api_instance.get_alarms(id=id, searchString=searchString, skip=skip, limit=limit)
pprint(api_response)
except ApiException as e:
print("Exception when calling DevelopersApi->getAlarms: %s\n" % e)
Parameters
| Name | Description |
|---|---|
| id |
String
id of the item to get
|
| searchString |
String
pass an optional search string for looking up inventory
|
| skip |
Integer
(int32)
number of records to skip for pagination
|
| limit |
Integer
(int32)
maximum number of records to return
|