attributesComputedGet
Fetch a list of Attributes
Without params, it returns a list of Attributes the user has access to
/attributes/computed
Usage and SDK Samples
curl -X GET "https://localhost/attributes/computed?all=&userId=&deviceId=&groupId=&refresh="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AttributesApi;
import java.io.File;
import java.util.*;
public class AttributesApiExample {
public static void main(String[] args) {
AttributesApi apiInstance = new AttributesApi();
Object all = ; // Object | Can only be used by admins or managers to fetch all entities
Object userId = ; // Object | Standard users can use this only with their own _userId_
Object deviceId = ; // Object | Standard users can use this only with _deviceId_s, they have access to
Object groupId = ; // Object | Standard users can use this only with _groupId_s, they have access to
Object refresh = ; // Object |
try {
apiInstance.attributesComputedGet(all, userId, deviceId, groupId, refresh);
} catch (ApiException e) {
System.err.println("Exception when calling AttributesApi#attributesComputedGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AttributesApi;
public class AttributesApiExample {
public static void main(String[] args) {
AttributesApi apiInstance = new AttributesApi();
Object all = ; // Object | Can only be used by admins or managers to fetch all entities
Object userId = ; // Object | Standard users can use this only with their own _userId_
Object deviceId = ; // Object | Standard users can use this only with _deviceId_s, they have access to
Object groupId = ; // Object | Standard users can use this only with _groupId_s, they have access to
Object refresh = ; // Object |
try {
apiInstance.attributesComputedGet(all, userId, deviceId, groupId, refresh);
} catch (ApiException e) {
System.err.println("Exception when calling AttributesApi#attributesComputedGet");
e.printStackTrace();
}
}
}
Object *all = ; // Can only be used by admins or managers to fetch all entities (optional)
Object *userId = ; // Standard users can use this only with their own _userId_ (optional)
Object *deviceId = ; // Standard users can use this only with _deviceId_s, they have access to (optional)
Object *groupId = ; // Standard users can use this only with _groupId_s, they have access to (optional)
Object *refresh = ; // (optional)
AttributesApi *apiInstance = [[AttributesApi alloc] init];
// Fetch a list of Attributes
[apiInstance attributesComputedGetWith:all
userId:userId
deviceId:deviceId
groupId:groupId
refresh:refresh
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var Antrack = require('antrack');
var api = new Antrack.AttributesApi()
var opts = {
'all': , // {Object} Can only be used by admins or managers to fetch all entities
'userId': , // {Object} Standard users can use this only with their own _userId_
'deviceId': , // {Object} Standard users can use this only with _deviceId_s, they have access to
'groupId': , // {Object} Standard users can use this only with _groupId_s, they have access to
'refresh': // {Object}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.attributesComputedGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class attributesComputedGetExample
{
public void main()
{
var apiInstance = new AttributesApi();
var all = new Object(); // Object | Can only be used by admins or managers to fetch all entities (optional)
var userId = new Object(); // Object | Standard users can use this only with their own _userId_ (optional)
var deviceId = new Object(); // Object | Standard users can use this only with _deviceId_s, they have access to (optional)
var groupId = new Object(); // Object | Standard users can use this only with _groupId_s, they have access to (optional)
var refresh = new Object(); // Object | (optional)
try
{
// Fetch a list of Attributes
apiInstance.attributesComputedGet(all, userId, deviceId, groupId, refresh);
}
catch (Exception e)
{
Debug.Print("Exception when calling AttributesApi.attributesComputedGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\AttributesApi();
$all = ; // Object | Can only be used by admins or managers to fetch all entities
$userId = ; // Object | Standard users can use this only with their own _userId_
$deviceId = ; // Object | Standard users can use this only with _deviceId_s, they have access to
$groupId = ; // Object | Standard users can use this only with _groupId_s, they have access to
$refresh = ; // Object |
try {
$api_instance->attributesComputedGet($all, $userId, $deviceId, $groupId, $refresh);
} catch (Exception $e) {
echo 'Exception when calling AttributesApi->attributesComputedGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AttributesApi;
my $api_instance = WWW::SwaggerClient::AttributesApi->new();
my $all = ; # Object | Can only be used by admins or managers to fetch all entities
my $userId = ; # Object | Standard users can use this only with their own _userId_
my $deviceId = ; # Object | Standard users can use this only with _deviceId_s, they have access to
my $groupId = ; # Object | Standard users can use this only with _groupId_s, they have access to
my $refresh = ; # Object |
eval {
$api_instance->attributesComputedGet(all => $all, userId => $userId, deviceId => $deviceId, groupId => $groupId, refresh => $refresh);
};
if ($@) {
warn "Exception when calling AttributesApi->attributesComputedGet: $@\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.AttributesApi()
all = # Object | Can only be used by admins or managers to fetch all entities (optional)
userId = # Object | Standard users can use this only with their own _userId_ (optional)
deviceId = # Object | Standard users can use this only with _deviceId_s, they have access to (optional)
groupId = # Object | Standard users can use this only with _groupId_s, they have access to (optional)
refresh = # Object | (optional)
try:
# Fetch a list of Attributes
api_instance.attributes_computed_get(all=all, userId=userId, deviceId=deviceId, groupId=groupId, refresh=refresh)
except ApiException as e:
print("Exception when calling AttributesApi->attributesComputedGet: %s\n" % e)
Parameters
Name | Description |
---|---|
all |
Object
Can only be used by admins or managers to fetch all entities
|
userId |
Object
Standard users can use this only with their own _userId_
|
deviceId |
Object
Standard users can use this only with _deviceId_s, they have access to
|
groupId |
Object
Standard users can use this only with _groupId_s, they have access to
|
refresh |
Object
|