thingsThingnameAccessesGet
Reads all accesses to a thing. Only possible if requester is admin of device
/things/{thingname}/accesses
Usage and SDK Samples
curl -X GET\
-H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://api.al-ko.com/v1/iot/things/{thingname}/accesses"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccessApi;
import java.io.File;
import java.util.*;
public class AccessApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
AccessApi apiInstance = new AccessApi();
String thingname = thingname_example; // String |
try {
array[Access] result = apiInstance.thingsThingnameAccessesGet(thingname);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccessApi#thingsThingnameAccessesGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AccessApi;
public class AccessApiExample {
public static void main(String[] args) {
AccessApi apiInstance = new AccessApi();
String thingname = thingname_example; // String |
try {
array[Access] result = apiInstance.thingsThingnameAccessesGet(thingname);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccessApi#thingsThingnameAccessesGet");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
String *thingname = thingname_example; //
AccessApi *apiInstance = [[AccessApi alloc] init];
[apiInstance thingsThingnameAccessesGetWith:thingname
completionHandler: ^(array[Access] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var AlKoGardentechIoTApi = require('al_ko_gardentech_io_t_api');
var defaultClient = AlKoGardentechIoTApi.ApiClient.instance;
var api = new AlKoGardentechIoTApi.AccessApi()
var thingname = thingname_example; // {{String}}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.thingsThingnameAccessesGet(thingname, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class thingsThingnameAccessesGetExample
{
public void main()
{
var apiInstance = new AccessApi();
var thingname = thingname_example; // String |
try
{
array[Access] result = apiInstance.thingsThingnameAccessesGet(thingname);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AccessApi.thingsThingnameAccessesGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiAccessApi();
$thingname = thingname_example; // String |
try {
$result = $api_instance->thingsThingnameAccessesGet($thingname);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccessApi->thingsThingnameAccessesGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AccessApi;
my $api_instance = WWW::SwaggerClient::AccessApi->new();
my $thingname = thingname_example; # String |
eval {
my $result = $api_instance->thingsThingnameAccessesGet(thingname => $thingname);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AccessApi->thingsThingnameAccessesGet: $@\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.AccessApi()
thingname = thingname_example # String |
try:
api_response = api_instance.things_thingname_accesses_get(thingname)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccessApi->thingsThingnameAccessesGet: %s\n" % e)
Parameters
Path parameters
Name | Description |
---|---|
thingname* |
String
Required
|