iSMA Android Application - View management API

Utils

unlock

disables kiosk mode

Disables kiosk mode


/unlock

Usage and SDK Samples

curl -X POST\
"//unlock"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UtilsApi;

import java.io.File;
import java.util.*;

public class UtilsApiExample {

    public static void main(String[] args) {
        
        UtilsApi apiInstance = new UtilsApi();
        try {
            apiInstance.unlock();
        } catch (ApiException e) {
            System.err.println("Exception when calling UtilsApi#unlock");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UtilsApi;

public class UtilsApiExample {

    public static void main(String[] args) {
        UtilsApi apiInstance = new UtilsApi();
        try {
            apiInstance.unlock();
        } catch (ApiException e) {
            System.err.println("Exception when calling UtilsApi#unlock");
            e.printStackTrace();
        }
    }
}

UtilsApi *apiInstance = [[UtilsApi alloc] init];

// disables kiosk mode
[apiInstance unlockWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ISmaAndroidApplicationViewManagementApi = require('i_sma_android_application___view_management_api');

var api = new ISmaAndroidApplicationViewManagementApi.UtilsApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.unlock(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class unlockExample
    {
        public void main()
        {

            var apiInstance = new UtilsApi();

            try
            {
                // disables kiosk mode
                apiInstance.unlock();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UtilsApi.unlock: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiUtilsApi();

try {
    $api_instance->unlock();
} catch (Exception $e) {
    echo 'Exception when calling UtilsApi->unlock: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UtilsApi;

my $api_instance = WWW::SwaggerClient::UtilsApi->new();

eval { 
    $api_instance->unlock();
};
if ($@) {
    warn "Exception when calling UtilsApi->unlock: $@\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.UtilsApi()

try: 
    # disables kiosk mode
    api_instance.unlock()
except ApiException as e:
    print("Exception when calling UtilsApi->unlock: %s\n" % e)

Parameters

Responses

Status: 200 - Kiosk mode disabled

Status: 500 - Unexpected error ocurred


V2

apiV2AlarmPost

Alarm endpoint


/api/v2/alarm

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Basic [[basicHash]]"\
-H "Content-Type: application/json"\
"//api/v2/alarm"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.V2Api;

import java.io.File;
import java.util.*;

public class V2ApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        V2Api apiInstance = new V2Api();
        Alarm body = ; // Alarm | Allows configuring and invoking actions related to alarm
        try {
            apiInstance.apiV2AlarmPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling V2Api#apiV2AlarmPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.V2Api;

public class V2ApiExample {

    public static void main(String[] args) {
        V2Api apiInstance = new V2Api();
        Alarm body = ; // Alarm | Allows configuring and invoking actions related to alarm
        try {
            apiInstance.apiV2AlarmPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling V2Api#apiV2AlarmPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Alarm *body = ; // Allows configuring and invoking actions related to alarm

V2Api *apiInstance = [[V2Api alloc] init];

// Alarm endpoint
[apiInstance apiV2AlarmPostWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ISmaAndroidApplicationViewManagementApi = require('i_sma_android_application___view_management_api');
var defaultClient = ISmaAndroidApplicationViewManagementApi.ApiClient.instance;
// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

var api = new ISmaAndroidApplicationViewManagementApi.V2Api()
var body = ; // {{Alarm}} Allows configuring and invoking actions related to alarm

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.apiV2AlarmPost(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiV2AlarmPostExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new V2Api();
            var body = new Alarm(); // Alarm | Allows configuring and invoking actions related to alarm

            try
            {
                // Alarm endpoint
                apiInstance.apiV2AlarmPost(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling V2Api.apiV2AlarmPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiV2Api();
$body = ; // Alarm | Allows configuring and invoking actions related to alarm

try {
    $api_instance->apiV2AlarmPost($body);
} catch (Exception $e) {
    echo 'Exception when calling V2Api->apiV2AlarmPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::V2Api;
# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::V2Api->new();
my $body = WWW::SwaggerClient::Object::Alarm->new(); # Alarm | Allows configuring and invoking actions related to alarm

eval { 
    $api_instance->apiV2AlarmPost(body => $body);
};
if ($@) {
    warn "Exception when calling V2Api->apiV2AlarmPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.V2Api()
body =  # Alarm | Allows configuring and invoking actions related to alarm

try: 
    # Alarm endpoint
    api_instance.api_v2_alarm_post(body)
except ApiException as e:
    print("Exception when calling V2Api->apiV2AlarmPost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - Request processed successfully

Status: 400 - Invalid request


apiV2DisplayPost

Display endpoint


/api/v2/display

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Basic [[basicHash]]"\
-H "Content-Type: application/json"\
"//api/v2/display"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.V2Api;

import java.io.File;
import java.util.*;

public class V2ApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: Basic
        HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
        Basic.setUsername("YOUR USERNAME");
        Basic.setPassword("YOUR PASSWORD");

        V2Api apiInstance = new V2Api();
        Display body = ; // Display | Allows configuring and invoking actions related to display
        try {
            apiInstance.apiV2DisplayPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling V2Api#apiV2DisplayPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.V2Api;

public class V2ApiExample {

    public static void main(String[] args) {
        V2Api apiInstance = new V2Api();
        Display body = ; // Display | Allows configuring and invoking actions related to display
        try {
            apiInstance.apiV2DisplayPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling V2Api#apiV2DisplayPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: Basic)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
Display *body = ; // Allows configuring and invoking actions related to display

V2Api *apiInstance = [[V2Api alloc] init];

// Display endpoint
[apiInstance apiV2DisplayPostWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ISmaAndroidApplicationViewManagementApi = require('i_sma_android_application___view_management_api');
var defaultClient = ISmaAndroidApplicationViewManagementApi.ApiClient.instance;
// Configure HTTP basic authorization: Basic
var Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME'
Basic.password = 'YOUR PASSWORD'

var api = new ISmaAndroidApplicationViewManagementApi.V2Api()
var body = ; // {{Display}} Allows configuring and invoking actions related to display

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.apiV2DisplayPost(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class apiV2DisplayPostExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: Basic
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new V2Api();
            var body = new Display(); // Display | Allows configuring and invoking actions related to display

            try
            {
                // Display endpoint
                apiInstance.apiV2DisplayPost(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling V2Api.apiV2DisplayPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Swagger\Client\ApiV2Api();
$body = ; // Display | Allows configuring and invoking actions related to display

try {
    $api_instance->apiV2DisplayPost($body);
} catch (Exception $e) {
    echo 'Exception when calling V2Api->apiV2DisplayPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::V2Api;
# Configure HTTP basic authorization: Basic
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';

my $api_instance = WWW::SwaggerClient::V2Api->new();
my $body = WWW::SwaggerClient::Object::Display->new(); # Display | Allows configuring and invoking actions related to display

eval { 
    $api_instance->apiV2DisplayPost(body => $body);
};
if ($@) {
    warn "Exception when calling V2Api->apiV2DisplayPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: Basic
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.V2Api()
body =  # Display | Allows configuring and invoking actions related to display

try: 
    # Display endpoint
    api_instance.api_v2_display_post(body)
except ApiException as e:
    print("Exception when calling V2Api->apiV2DisplayPost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - Request processed successfully

Status: 400 - Invalid request


Views

autostartGet

Used to get id of view selected for autostart


/autostart

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//autostart"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ViewsApi;

import java.io.File;
import java.util.*;

public class ViewsApiExample {

    public static void main(String[] args) {
        
        ViewsApi apiInstance = new ViewsApi();
        try {
            inline_response_200 result = apiInstance.autostartGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ViewsApi#autostartGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ViewsApi;

public class ViewsApiExample {

    public static void main(String[] args) {
        ViewsApi apiInstance = new ViewsApi();
        try {
            inline_response_200 result = apiInstance.autostartGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ViewsApi#autostartGet");
            e.printStackTrace();
        }
    }
}

ViewsApi *apiInstance = [[ViewsApi alloc] init];

// Used to get id of view selected for autostart
[apiInstance autostartGetWithCompletionHandler: 
              ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ISmaAndroidApplicationViewManagementApi = require('i_sma_android_application___view_management_api');

var api = new ISmaAndroidApplicationViewManagementApi.ViewsApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.autostartGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class autostartGetExample
    {
        public void main()
        {

            var apiInstance = new ViewsApi();

            try
            {
                // Used to get id of view selected for autostart
                inline_response_200 result = apiInstance.autostartGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ViewsApi.autostartGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiViewsApi();

try {
    $result = $api_instance->autostartGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ViewsApi->autostartGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ViewsApi;

my $api_instance = WWW::SwaggerClient::ViewsApi->new();

eval { 
    my $result = $api_instance->autostartGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ViewsApi->autostartGet: $@\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.ViewsApi()

try: 
    # Used to get id of view selected for autostart
    api_response = api_instance.autostart_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ViewsApi->autostartGet: %s\n" % e)

Parameters

Responses

Status: 200 - OK


autostartPost

Used to select id of autostart view


/autostart

Usage and SDK Samples

curl -X POST\
"//autostart?id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ViewsApi;

import java.io.File;
import java.util.*;

public class ViewsApiExample {

    public static void main(String[] args) {
        
        ViewsApi apiInstance = new ViewsApi();
        Integer id = 56; // Integer | id of the view to be set as autostart, or -1 to select none
        try {
            apiInstance.autostartPost(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling ViewsApi#autostartPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ViewsApi;

public class ViewsApiExample {

    public static void main(String[] args) {
        ViewsApi apiInstance = new ViewsApi();
        Integer id = 56; // Integer | id of the view to be set as autostart, or -1 to select none
        try {
            apiInstance.autostartPost(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling ViewsApi#autostartPost");
            e.printStackTrace();
        }
    }
}
Integer *id = 56; // id of the view to be set as autostart, or -1 to select none

ViewsApi *apiInstance = [[ViewsApi alloc] init];

// Used to select id of autostart view
[apiInstance autostartPostWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ISmaAndroidApplicationViewManagementApi = require('i_sma_android_application___view_management_api');

var api = new ISmaAndroidApplicationViewManagementApi.ViewsApi()
var id = 56; // {{Integer}} id of the view to be set as autostart, or -1 to select none

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.autostartPost(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class autostartPostExample
    {
        public void main()
        {

            var apiInstance = new ViewsApi();
            var id = 56;  // Integer | id of the view to be set as autostart, or -1 to select none

            try
            {
                // Used to select id of autostart view
                apiInstance.autostartPost(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ViewsApi.autostartPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiViewsApi();
$id = 56; // Integer | id of the view to be set as autostart, or -1 to select none

try {
    $api_instance->autostartPost($id);
} catch (Exception $e) {
    echo 'Exception when calling ViewsApi->autostartPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ViewsApi;

my $api_instance = WWW::SwaggerClient::ViewsApi->new();
my $id = 56; # Integer | id of the view to be set as autostart, or -1 to select none

eval { 
    $api_instance->autostartPost(id => $id);
};
if ($@) {
    warn "Exception when calling ViewsApi->autostartPost: $@\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.ViewsApi()
id = 56 # Integer | id of the view to be set as autostart, or -1 to select none

try: 
    # Used to select id of autostart view
    api_instance.autostart_post(id)
except ApiException as e:
    print("Exception when calling ViewsApi->autostartPost: %s\n" % e)

Parameters

Query parameters
Name Description
id*
Integer
id of the view to be set as autostart, or -1 to select none
Required

Responses

Status: 200 - OK

Status: 400 - View with requested id does not exist


listGet

Returns list of saved views

Returns list of saved views


/list

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//list"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ViewsApi;

import java.io.File;
import java.util.*;

public class ViewsApiExample {

    public static void main(String[] args) {
        
        ViewsApi apiInstance = new ViewsApi();
        try {
            array[View] result = apiInstance.listGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ViewsApi#listGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ViewsApi;

public class ViewsApiExample {

    public static void main(String[] args) {
        ViewsApi apiInstance = new ViewsApi();
        try {
            array[View] result = apiInstance.listGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ViewsApi#listGet");
            e.printStackTrace();
        }
    }
}

ViewsApi *apiInstance = [[ViewsApi alloc] init];

// Returns list of saved views
[apiInstance listGetWithCompletionHandler: 
              ^(array[View] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ISmaAndroidApplicationViewManagementApi = require('i_sma_android_application___view_management_api');

var api = new ISmaAndroidApplicationViewManagementApi.ViewsApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class listGetExample
    {
        public void main()
        {

            var apiInstance = new ViewsApi();

            try
            {
                // Returns list of saved views
                array[View] result = apiInstance.listGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ViewsApi.listGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiViewsApi();

try {
    $result = $api_instance->listGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ViewsApi->listGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ViewsApi;

my $api_instance = WWW::SwaggerClient::ViewsApi->new();

eval { 
    my $result = $api_instance->listGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ViewsApi->listGet: $@\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.ViewsApi()

try: 
    # Returns list of saved views
    api_response = api_instance.list_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ViewsApi->listGet: %s\n" % e)

Parameters

Responses

Status: 200 - Successfully returned list of connections


viewIdDelete

Removes view with requested id


/view/{id}

Usage and SDK Samples

curl -X DELETE\
"//view/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ViewsApi;

import java.io.File;
import java.util.*;

public class ViewsApiExample {

    public static void main(String[] args) {
        
        ViewsApi apiInstance = new ViewsApi();
        Integer id = 56; // Integer | Id of the requested view
        try {
            apiInstance.viewIdDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling ViewsApi#viewIdDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ViewsApi;

public class ViewsApiExample {

    public static void main(String[] args) {
        ViewsApi apiInstance = new ViewsApi();
        Integer id = 56; // Integer | Id of the requested view
        try {
            apiInstance.viewIdDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling ViewsApi#viewIdDelete");
            e.printStackTrace();
        }
    }
}
Integer *id = 56; // Id of the requested view

ViewsApi *apiInstance = [[ViewsApi alloc] init];

// Removes view with requested id
[apiInstance viewIdDeleteWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ISmaAndroidApplicationViewManagementApi = require('i_sma_android_application___view_management_api');

var api = new ISmaAndroidApplicationViewManagementApi.ViewsApi()
var id = 56; // {{Integer}} Id of the requested view

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.viewIdDelete(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class viewIdDeleteExample
    {
        public void main()
        {

            var apiInstance = new ViewsApi();
            var id = 56;  // Integer | Id of the requested view

            try
            {
                // Removes view with requested id
                apiInstance.viewIdDelete(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ViewsApi.viewIdDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiViewsApi();
$id = 56; // Integer | Id of the requested view

try {
    $api_instance->viewIdDelete($id);
} catch (Exception $e) {
    echo 'Exception when calling ViewsApi->viewIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ViewsApi;

my $api_instance = WWW::SwaggerClient::ViewsApi->new();
my $id = 56; # Integer | Id of the requested view

eval { 
    $api_instance->viewIdDelete(id => $id);
};
if ($@) {
    warn "Exception when calling ViewsApi->viewIdDelete: $@\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.ViewsApi()
id = 56 # Integer | Id of the requested view

try: 
    # Removes view with requested id
    api_instance.view_id_delete(id)
except ApiException as e:
    print("Exception when calling ViewsApi->viewIdDelete: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Id of the requested view
Required

Responses

Status: 200 - OK

Status: 404 - View with requested id was not found


viewIdGet

Get requested view


/view/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//view/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ViewsApi;

import java.io.File;
import java.util.*;

public class ViewsApiExample {

    public static void main(String[] args) {
        
        ViewsApi apiInstance = new ViewsApi();
        Integer id = 56; // Integer | Id of the requested view
        try {
            View result = apiInstance.viewIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ViewsApi#viewIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ViewsApi;

public class ViewsApiExample {

    public static void main(String[] args) {
        ViewsApi apiInstance = new ViewsApi();
        Integer id = 56; // Integer | Id of the requested view
        try {
            View result = apiInstance.viewIdGet(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ViewsApi#viewIdGet");
            e.printStackTrace();
        }
    }
}
Integer *id = 56; // Id of the requested view

ViewsApi *apiInstance = [[ViewsApi alloc] init];

// Get requested view
[apiInstance viewIdGetWith:id
              completionHandler: ^(View output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ISmaAndroidApplicationViewManagementApi = require('i_sma_android_application___view_management_api');

var api = new ISmaAndroidApplicationViewManagementApi.ViewsApi()
var id = 56; // {{Integer}} Id of the requested view

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.viewIdGet(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class viewIdGetExample
    {
        public void main()
        {

            var apiInstance = new ViewsApi();
            var id = 56;  // Integer | Id of the requested view

            try
            {
                // Get requested view
                View result = apiInstance.viewIdGet(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ViewsApi.viewIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiViewsApi();
$id = 56; // Integer | Id of the requested view

try {
    $result = $api_instance->viewIdGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ViewsApi->viewIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ViewsApi;

my $api_instance = WWW::SwaggerClient::ViewsApi->new();
my $id = 56; # Integer | Id of the requested view

eval { 
    my $result = $api_instance->viewIdGet(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ViewsApi->viewIdGet: $@\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.ViewsApi()
id = 56 # Integer | Id of the requested view

try: 
    # Get requested view
    api_response = api_instance.view_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ViewsApi->viewIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Id of the requested view
Required

Responses

Status: 200 - OK

Status: 404 - View with requested id was not found


viewIdPut

Update requested view


/view/{id}

Usage and SDK Samples

curl -X PUT\
-H "Content-Type: application/json"\
"//view/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ViewsApi;

import java.io.File;
import java.util.*;

public class ViewsApiExample {

    public static void main(String[] args) {
        
        ViewsApi apiInstance = new ViewsApi();
        View body = ; // View | View description in json format
        Integer id = 56; // Integer | Id of the view to be updated
        try {
            apiInstance.viewIdPut(body, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling ViewsApi#viewIdPut");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ViewsApi;

public class ViewsApiExample {

    public static void main(String[] args) {
        ViewsApi apiInstance = new ViewsApi();
        View body = ; // View | View description in json format
        Integer id = 56; // Integer | Id of the view to be updated
        try {
            apiInstance.viewIdPut(body, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling ViewsApi#viewIdPut");
            e.printStackTrace();
        }
    }
}
View *body = ; // View description in json format
Integer *id = 56; // Id of the view to be updated

ViewsApi *apiInstance = [[ViewsApi alloc] init];

// Update requested view
[apiInstance viewIdPutWith:body
    id:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ISmaAndroidApplicationViewManagementApi = require('i_sma_android_application___view_management_api');

var api = new ISmaAndroidApplicationViewManagementApi.ViewsApi()
var body = ; // {{View}} View description in json format
var id = 56; // {{Integer}} Id of the view to be updated

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.viewIdPut(bodyid, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class viewIdPutExample
    {
        public void main()
        {

            var apiInstance = new ViewsApi();
            var body = new View(); // View | View description in json format
            var id = 56;  // Integer | Id of the view to be updated

            try
            {
                // Update requested view
                apiInstance.viewIdPut(body, id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ViewsApi.viewIdPut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiViewsApi();
$body = ; // View | View description in json format
$id = 56; // Integer | Id of the view to be updated

try {
    $api_instance->viewIdPut($body, $id);
} catch (Exception $e) {
    echo 'Exception when calling ViewsApi->viewIdPut: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ViewsApi;

my $api_instance = WWW::SwaggerClient::ViewsApi->new();
my $body = WWW::SwaggerClient::Object::View->new(); # View | View description in json format
my $id = 56; # Integer | Id of the view to be updated

eval { 
    $api_instance->viewIdPut(body => $body, id => $id);
};
if ($@) {
    warn "Exception when calling ViewsApi->viewIdPut: $@\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.ViewsApi()
body =  # View | View description in json format
id = 56 # Integer | Id of the view to be updated

try: 
    # Update requested view
    api_instance.view_id_put(body, id)
except ApiException as e:
    print("Exception when calling ViewsApi->viewIdPut: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Integer
Id of the view to be updated
Required
Body parameters
Name Description
body *

Responses

Status: 200 - View updated successfully

Status: 400 - Invalid request


viewPost

Adds new view with requested structure


/view

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//view"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ViewsApi;

import java.io.File;
import java.util.*;

public class ViewsApiExample {

    public static void main(String[] args) {
        
        ViewsApi apiInstance = new ViewsApi();
        View body = ; // View | View description in json format
        try {
            inline_response_200_1 result = apiInstance.viewPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ViewsApi#viewPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ViewsApi;

public class ViewsApiExample {

    public static void main(String[] args) {
        ViewsApi apiInstance = new ViewsApi();
        View body = ; // View | View description in json format
        try {
            inline_response_200_1 result = apiInstance.viewPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ViewsApi#viewPost");
            e.printStackTrace();
        }
    }
}
View *body = ; // View description in json format

ViewsApi *apiInstance = [[ViewsApi alloc] init];

// Adds new view with requested structure
[apiInstance viewPostWith:body
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ISmaAndroidApplicationViewManagementApi = require('i_sma_android_application___view_management_api');

var api = new ISmaAndroidApplicationViewManagementApi.ViewsApi()
var body = ; // {{View}} View description in json format

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.viewPost(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class viewPostExample
    {
        public void main()
        {

            var apiInstance = new ViewsApi();
            var body = new View(); // View | View description in json format

            try
            {
                // Adds new view with requested structure
                inline_response_200_1 result = apiInstance.viewPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ViewsApi.viewPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiViewsApi();
$body = ; // View | View description in json format

try {
    $result = $api_instance->viewPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ViewsApi->viewPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ViewsApi;

my $api_instance = WWW::SwaggerClient::ViewsApi->new();
my $body = WWW::SwaggerClient::Object::View->new(); # View | View description in json format

eval { 
    my $result = $api_instance->viewPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ViewsApi->viewPost: $@\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.ViewsApi()
body =  # View | View description in json format

try: 
    # Adds new view with requested structure
    api_response = api_instance.view_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ViewsApi->viewPost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - View updated successfully

Status: 400 - Invalid request