The Personal Digital Spaces API

Assets

assetsRegisterFile

Register asset against a file

Publishes file-asset info on the Żetonium blockchain. The file is stored in a special container called a Vault. > Using this call will charge the calling account **12 Żetons** (12,000,000 Leos) for utilizing computational resources. Errors will be thrown if this balance is not held by the publisher's account.


/assets/register/file

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://34.69.151.182:8080/api/assets/register/file"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetsApi;

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

public class AssetsApiExample {

    public static void main(String[] args) {
        
        AssetsApi apiInstance = new AssetsApi();
        Register_file_body body = ; // Register_file_body | 
        try {
            array['Integer'] result = apiInstance.assetsRegisterFile(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetsApi#assetsRegisterFile");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetsApi;

public class AssetsApiExample {

    public static void main(String[] args) {
        AssetsApi apiInstance = new AssetsApi();
        Register_file_body body = ; // Register_file_body | 
        try {
            array['Integer'] result = apiInstance.assetsRegisterFile(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetsApi#assetsRegisterFile");
            e.printStackTrace();
        }
    }
}
Register_file_body *body = ; //  (optional)

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

// Register asset against a file
[apiInstance assetsRegisterFileWith:body
              completionHandler: ^(array['Integer'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

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

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

            var apiInstance = new AssetsApi();
            var body = new Register_file_body(); // Register_file_body |  (optional) 

            try
            {
                // Register asset against a file
                array['Integer'] result = apiInstance.assetsRegisterFile(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetsApi.assetsRegisterFile: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetsApi();
$body = ; // Register_file_body | 

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

my $api_instance = WWW::SwaggerClient::AssetsApi->new();
my $body = WWW::SwaggerClient::Object::Register_file_body->new(); # Register_file_body | 

eval { 
    my $result = $api_instance->assetsRegisterFile(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetsApi->assetsRegisterFile: $@\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.AssetsApi()
body =  # Register_file_body |  (optional)

try: 
    # Register asset against a file
    api_response = api_instance.assets_register_file(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetsApi->assetsRegisterFile: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - Register asset against a file


assetsRegisterTag

Registers tag

Registers tag


/assets/register/tag

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://34.69.151.182:8080/api/assets/register/tag"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetsApi;

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

public class AssetsApiExample {

    public static void main(String[] args) {
        
        AssetsApi apiInstance = new AssetsApi();
        Register_tag_body body = ; // Register_tag_body | Get assets of tag
        try {
            'Integer' result = apiInstance.assetsRegisterTag(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetsApi#assetsRegisterTag");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetsApi;

public class AssetsApiExample {

    public static void main(String[] args) {
        AssetsApi apiInstance = new AssetsApi();
        Register_tag_body body = ; // Register_tag_body | Get assets of tag
        try {
            'Integer' result = apiInstance.assetsRegisterTag(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetsApi#assetsRegisterTag");
            e.printStackTrace();
        }
    }
}
Register_tag_body *body = ; // Get assets of tag (optional)

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

// Registers tag
[apiInstance assetsRegisterTagWith:body
              completionHandler: ^('Integer' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

var api = new ThePersonalDigitalSpacesApi.AssetsApi()
var opts = { 
  'body':  // {{Register_tag_body}} Get assets of tag
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.assetsRegisterTag(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new AssetsApi();
            var body = new Register_tag_body(); // Register_tag_body | Get assets of tag (optional) 

            try
            {
                // Registers tag
                'Integer' result = apiInstance.assetsRegisterTag(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetsApi.assetsRegisterTag: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetsApi();
$body = ; // Register_tag_body | Get assets of tag

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

my $api_instance = WWW::SwaggerClient::AssetsApi->new();
my $body = WWW::SwaggerClient::Object::Register_tag_body->new(); # Register_tag_body | Get assets of tag

eval { 
    my $result = $api_instance->assetsRegisterTag(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetsApi->assetsRegisterTag: $@\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.AssetsApi()
body =  # Register_tag_body | Get assets of tag (optional)

try: 
    # Registers tag
    api_response = api_instance.assets_register_tag(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetsApi->assetsRegisterTag: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - Registers tag


getAssets

Get assets

Retrieves assets list. Depending on your goals, set the value of the `queryOption` field: - `queryOption`=`own_assets` and specify fields: `ownerId`, `offset`, `limit` - `queryOption='by_ids'` - and specify fields: `assetIds`


/assets

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://34.69.151.182:8080/api/assets?queryOption=&ownerId=&offset=&limit=&assetIds="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetsApi;

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

public class AssetsApiExample {

    public static void main(String[] args) {
        
        AssetsApi apiInstance = new AssetsApi();
        String queryOption = queryOption_example; // String | 
        AddressString ownerId = ; // AddressString | 
        Integer offset = 56; // Integer | Start position.
        Integer limit = 56; // Integer | Total number of elements returned.
        array[Integer] assetIds = ; // array[Integer] | Asset IDs separated by comma.
        try {
            inline_response_200_6 result = apiInstance.getAssets(queryOption, ownerId, offset, limit, assetIds);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetsApi#getAssets");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetsApi;

public class AssetsApiExample {

    public static void main(String[] args) {
        AssetsApi apiInstance = new AssetsApi();
        String queryOption = queryOption_example; // String | 
        AddressString ownerId = ; // AddressString | 
        Integer offset = 56; // Integer | Start position.
        Integer limit = 56; // Integer | Total number of elements returned.
        array[Integer] assetIds = ; // array[Integer] | Asset IDs separated by comma.
        try {
            inline_response_200_6 result = apiInstance.getAssets(queryOption, ownerId, offset, limit, assetIds);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetsApi#getAssets");
            e.printStackTrace();
        }
    }
}
String *queryOption = queryOption_example; // 
AddressString *ownerId = ; //  (optional)
Integer *offset = 56; // Start position. (optional) (default to 0)
Integer *limit = 56; // Total number of elements returned. (optional) (default to 10)
array[Integer] *assetIds = ; // Asset IDs separated by comma. (optional)

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

// Get assets
[apiInstance getAssetsWith:queryOption
    ownerId:ownerId
    offset:offset
    limit:limit
    assetIds:assetIds
              completionHandler: ^(inline_response_200_6 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

var api = new ThePersonalDigitalSpacesApi.AssetsApi()
var queryOption = queryOption_example; // {{String}} 
var opts = { 
  'ownerId': , // {{AddressString}} 
  'offset': 56, // {{Integer}} Start position.
  'limit': 56, // {{Integer}} Total number of elements returned.
  'assetIds':  // {{array[Integer]}} Asset IDs separated by comma.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAssets(queryOption, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new AssetsApi();
            var queryOption = queryOption_example;  // String | 
            var ownerId = new AddressString(); // AddressString |  (optional) 
            var offset = 56;  // Integer | Start position. (optional)  (default to 0)
            var limit = 56;  // Integer | Total number of elements returned. (optional)  (default to 10)
            var assetIds = new array[Integer](); // array[Integer] | Asset IDs separated by comma. (optional) 

            try
            {
                // Get assets
                inline_response_200_6 result = apiInstance.getAssets(queryOption, ownerId, offset, limit, assetIds);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetsApi.getAssets: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetsApi();
$queryOption = queryOption_example; // String | 
$ownerId = ; // AddressString | 
$offset = 56; // Integer | Start position.
$limit = 56; // Integer | Total number of elements returned.
$assetIds = ; // array[Integer] | Asset IDs separated by comma.

try {
    $result = $api_instance->getAssets($queryOption, $ownerId, $offset, $limit, $assetIds);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetsApi->getAssets: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetsApi;

my $api_instance = WWW::SwaggerClient::AssetsApi->new();
my $queryOption = queryOption_example; # String | 
my $ownerId = ; # AddressString | 
my $offset = 56; # Integer | Start position.
my $limit = 56; # Integer | Total number of elements returned.
my $assetIds = []; # array[Integer] | Asset IDs separated by comma.

eval { 
    my $result = $api_instance->getAssets(queryOption => $queryOption, ownerId => $ownerId, offset => $offset, limit => $limit, assetIds => $assetIds);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetsApi->getAssets: $@\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.AssetsApi()
queryOption = queryOption_example # String | 
ownerId =  # AddressString |  (optional)
offset = 56 # Integer | Start position. (optional) (default to 0)
limit = 56 # Integer | Total number of elements returned. (optional) (default to 10)
assetIds =  # array[Integer] | Asset IDs separated by comma. (optional)

try: 
    # Get assets
    api_response = api_instance.get_assets(queryOption, ownerId=ownerId, offset=offset, limit=limit, assetIds=assetIds)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetsApi->getAssets: %s\n" % e)

Parameters

Query parameters
Name Description
queryOption*
String
Required
ownerId
AddressString
offset
Integer
Start position.
limit
Integer
Total number of elements returned.
assetIds
array[Integer]
Asset IDs separated by comma.

Responses

Status: 200 - List of assets


getAssetsFile

Get assets of file

Retrieves assets list. Depending on your goals, set the value of the `queryOption` field: - `queryOption`=`own_assets` - and specify fields: `ownerId`, `offset`, `limit` - `queryOption='by_ids'` - and specify fields: `assetIds`


/assets/register/file

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://34.69.151.182:8080/api/assets/register/file?queryOption=&ownerId=&offset=&limit=&assetIds="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetsApi;

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

public class AssetsApiExample {

    public static void main(String[] args) {
        
        AssetsApi apiInstance = new AssetsApi();
        String queryOption = queryOption_example; // String | 
        AddressString ownerId = ; // AddressString | 
        Integer offset = 56; // Integer | Start position.
        Integer limit = 56; // Integer | Total number of elements returned.
        array[Integer] assetIds = ; // array[Integer] | Asset IDs separated by comma.
        try {
            inline_response_200_7 result = apiInstance.getAssetsFile(queryOption, ownerId, offset, limit, assetIds);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetsApi#getAssetsFile");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetsApi;

public class AssetsApiExample {

    public static void main(String[] args) {
        AssetsApi apiInstance = new AssetsApi();
        String queryOption = queryOption_example; // String | 
        AddressString ownerId = ; // AddressString | 
        Integer offset = 56; // Integer | Start position.
        Integer limit = 56; // Integer | Total number of elements returned.
        array[Integer] assetIds = ; // array[Integer] | Asset IDs separated by comma.
        try {
            inline_response_200_7 result = apiInstance.getAssetsFile(queryOption, ownerId, offset, limit, assetIds);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetsApi#getAssetsFile");
            e.printStackTrace();
        }
    }
}
String *queryOption = queryOption_example; // 
AddressString *ownerId = ; //  (optional)
Integer *offset = 56; // Start position. (optional) (default to 0)
Integer *limit = 56; // Total number of elements returned. (optional) (default to 10)
array[Integer] *assetIds = ; // Asset IDs separated by comma. (optional)

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

// Get assets of file
[apiInstance getAssetsFileWith:queryOption
    ownerId:ownerId
    offset:offset
    limit:limit
    assetIds:assetIds
              completionHandler: ^(inline_response_200_7 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

var api = new ThePersonalDigitalSpacesApi.AssetsApi()
var queryOption = queryOption_example; // {{String}} 
var opts = { 
  'ownerId': , // {{AddressString}} 
  'offset': 56, // {{Integer}} Start position.
  'limit': 56, // {{Integer}} Total number of elements returned.
  'assetIds':  // {{array[Integer]}} Asset IDs separated by comma.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAssetsFile(queryOption, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new AssetsApi();
            var queryOption = queryOption_example;  // String | 
            var ownerId = new AddressString(); // AddressString |  (optional) 
            var offset = 56;  // Integer | Start position. (optional)  (default to 0)
            var limit = 56;  // Integer | Total number of elements returned. (optional)  (default to 10)
            var assetIds = new array[Integer](); // array[Integer] | Asset IDs separated by comma. (optional) 

            try
            {
                // Get assets of file
                inline_response_200_7 result = apiInstance.getAssetsFile(queryOption, ownerId, offset, limit, assetIds);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetsApi.getAssetsFile: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetsApi();
$queryOption = queryOption_example; // String | 
$ownerId = ; // AddressString | 
$offset = 56; // Integer | Start position.
$limit = 56; // Integer | Total number of elements returned.
$assetIds = ; // array[Integer] | Asset IDs separated by comma.

try {
    $result = $api_instance->getAssetsFile($queryOption, $ownerId, $offset, $limit, $assetIds);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetsApi->getAssetsFile: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetsApi;

my $api_instance = WWW::SwaggerClient::AssetsApi->new();
my $queryOption = queryOption_example; # String | 
my $ownerId = ; # AddressString | 
my $offset = 56; # Integer | Start position.
my $limit = 56; # Integer | Total number of elements returned.
my $assetIds = []; # array[Integer] | Asset IDs separated by comma.

eval { 
    my $result = $api_instance->getAssetsFile(queryOption => $queryOption, ownerId => $ownerId, offset => $offset, limit => $limit, assetIds => $assetIds);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetsApi->getAssetsFile: $@\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.AssetsApi()
queryOption = queryOption_example # String | 
ownerId =  # AddressString |  (optional)
offset = 56 # Integer | Start position. (optional) (default to 0)
limit = 56 # Integer | Total number of elements returned. (optional) (default to 10)
assetIds =  # array[Integer] | Asset IDs separated by comma. (optional)

try: 
    # Get assets of file
    api_response = api_instance.get_assets_file(queryOption, ownerId=ownerId, offset=offset, limit=limit, assetIds=assetIds)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetsApi->getAssetsFile: %s\n" % e)

Parameters

Query parameters
Name Description
queryOption*
String
Required
ownerId
AddressString
offset
Integer
Start position.
limit
Integer
Total number of elements returned.
assetIds
array[Integer]
Asset IDs separated by comma.

Responses

Status: 200 - List of assets


getAssetsSat

Get assets of sat

Retrieves assets list. Depending on your goals, set the value of the `queryOption` field: - `queryOption`=`own_assets` - and specify fields: `ownerId`, `offset`, `limit` - `queryOption='by_ids'` - and specify fields: `assetIds`


/assets/register/sat

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://34.69.151.182:8080/api/assets/register/sat?queryOption=&ownerId=&offset=&limit=&assetIds="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetsApi;

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

public class AssetsApiExample {

    public static void main(String[] args) {
        
        AssetsApi apiInstance = new AssetsApi();
        String queryOption = queryOption_example; // String | 
        AddressString ownerId = ; // AddressString | 
        Integer offset = 56; // Integer | Start position.
        Integer limit = 56; // Integer | Total number of elements returned.
        array[Integer] assetIds = ; // array[Integer] | Asset IDs separated by comma.
        try {
            inline_response_200_8 result = apiInstance.getAssetsSat(queryOption, ownerId, offset, limit, assetIds);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetsApi#getAssetsSat");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetsApi;

public class AssetsApiExample {

    public static void main(String[] args) {
        AssetsApi apiInstance = new AssetsApi();
        String queryOption = queryOption_example; // String | 
        AddressString ownerId = ; // AddressString | 
        Integer offset = 56; // Integer | Start position.
        Integer limit = 56; // Integer | Total number of elements returned.
        array[Integer] assetIds = ; // array[Integer] | Asset IDs separated by comma.
        try {
            inline_response_200_8 result = apiInstance.getAssetsSat(queryOption, ownerId, offset, limit, assetIds);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetsApi#getAssetsSat");
            e.printStackTrace();
        }
    }
}
String *queryOption = queryOption_example; // 
AddressString *ownerId = ; //  (optional)
Integer *offset = 56; // Start position. (optional) (default to 0)
Integer *limit = 56; // Total number of elements returned. (optional) (default to 10)
array[Integer] *assetIds = ; // Asset IDs separated by comma. (optional)

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

// Get assets of sat
[apiInstance getAssetsSatWith:queryOption
    ownerId:ownerId
    offset:offset
    limit:limit
    assetIds:assetIds
              completionHandler: ^(inline_response_200_8 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

var api = new ThePersonalDigitalSpacesApi.AssetsApi()
var queryOption = queryOption_example; // {{String}} 
var opts = { 
  'ownerId': , // {{AddressString}} 
  'offset': 56, // {{Integer}} Start position.
  'limit': 56, // {{Integer}} Total number of elements returned.
  'assetIds':  // {{array[Integer]}} Asset IDs separated by comma.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAssetsSat(queryOption, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new AssetsApi();
            var queryOption = queryOption_example;  // String | 
            var ownerId = new AddressString(); // AddressString |  (optional) 
            var offset = 56;  // Integer | Start position. (optional)  (default to 0)
            var limit = 56;  // Integer | Total number of elements returned. (optional)  (default to 10)
            var assetIds = new array[Integer](); // array[Integer] | Asset IDs separated by comma. (optional) 

            try
            {
                // Get assets of sat
                inline_response_200_8 result = apiInstance.getAssetsSat(queryOption, ownerId, offset, limit, assetIds);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetsApi.getAssetsSat: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetsApi();
$queryOption = queryOption_example; // String | 
$ownerId = ; // AddressString | 
$offset = 56; // Integer | Start position.
$limit = 56; // Integer | Total number of elements returned.
$assetIds = ; // array[Integer] | Asset IDs separated by comma.

try {
    $result = $api_instance->getAssetsSat($queryOption, $ownerId, $offset, $limit, $assetIds);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetsApi->getAssetsSat: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetsApi;

my $api_instance = WWW::SwaggerClient::AssetsApi->new();
my $queryOption = queryOption_example; # String | 
my $ownerId = ; # AddressString | 
my $offset = 56; # Integer | Start position.
my $limit = 56; # Integer | Total number of elements returned.
my $assetIds = []; # array[Integer] | Asset IDs separated by comma.

eval { 
    my $result = $api_instance->getAssetsSat(queryOption => $queryOption, ownerId => $ownerId, offset => $offset, limit => $limit, assetIds => $assetIds);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetsApi->getAssetsSat: $@\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.AssetsApi()
queryOption = queryOption_example # String | 
ownerId =  # AddressString |  (optional)
offset = 56 # Integer | Start position. (optional) (default to 0)
limit = 56 # Integer | Total number of elements returned. (optional) (default to 10)
assetIds =  # array[Integer] | Asset IDs separated by comma. (optional)

try: 
    # Get assets of sat
    api_response = api_instance.get_assets_sat(queryOption, ownerId=ownerId, offset=offset, limit=limit, assetIds=assetIds)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetsApi->getAssetsSat: %s\n" % e)

Parameters

Query parameters
Name Description
queryOption*
String
Required
ownerId
AddressString
offset
Integer
Start position.
limit
Integer
Total number of elements returned.
assetIds
array[Integer]
Asset IDs separated by comma.

Responses

Status: 200 - List of assets


getAssetsTag

Get assets of tag

Retrieves assets list. Depending on your goals, set the value of the `queryOption` field: - `queryOption`=`own_assets` - and specify fields: `ownerId`, `offset`, `limit` - `queryOption='by_ids'` - and specify fields: `assetIds`


/assets/register/tag

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://34.69.151.182:8080/api/assets/register/tag?queryOption=&ownerId=&offset=&limit=&assetIds="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetsApi;

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

public class AssetsApiExample {

    public static void main(String[] args) {
        
        AssetsApi apiInstance = new AssetsApi();
        String queryOption = queryOption_example; // String | 
        AddressString ownerId = ; // AddressString | 
        Integer offset = 56; // Integer | Start position.
        Integer limit = 56; // Integer | Total number of elements returned.
        array[Integer] assetIds = ; // array[Integer] | Asset IDs separated by comma.
        try {
            inline_response_200_8 result = apiInstance.getAssetsTag(queryOption, ownerId, offset, limit, assetIds);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetsApi#getAssetsTag");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetsApi;

public class AssetsApiExample {

    public static void main(String[] args) {
        AssetsApi apiInstance = new AssetsApi();
        String queryOption = queryOption_example; // String | 
        AddressString ownerId = ; // AddressString | 
        Integer offset = 56; // Integer | Start position.
        Integer limit = 56; // Integer | Total number of elements returned.
        array[Integer] assetIds = ; // array[Integer] | Asset IDs separated by comma.
        try {
            inline_response_200_8 result = apiInstance.getAssetsTag(queryOption, ownerId, offset, limit, assetIds);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetsApi#getAssetsTag");
            e.printStackTrace();
        }
    }
}
String *queryOption = queryOption_example; // 
AddressString *ownerId = ; //  (optional)
Integer *offset = 56; // Start position. (optional) (default to 0)
Integer *limit = 56; // Total number of elements returned. (optional) (default to 10)
array[Integer] *assetIds = ; // Asset IDs separated by comma. (optional)

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

// Get assets of tag
[apiInstance getAssetsTagWith:queryOption
    ownerId:ownerId
    offset:offset
    limit:limit
    assetIds:assetIds
              completionHandler: ^(inline_response_200_8 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

var api = new ThePersonalDigitalSpacesApi.AssetsApi()
var queryOption = queryOption_example; // {{String}} 
var opts = { 
  'ownerId': , // {{AddressString}} 
  'offset': 56, // {{Integer}} Start position.
  'limit': 56, // {{Integer}} Total number of elements returned.
  'assetIds':  // {{array[Integer]}} Asset IDs separated by comma.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAssetsTag(queryOption, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new AssetsApi();
            var queryOption = queryOption_example;  // String | 
            var ownerId = new AddressString(); // AddressString |  (optional) 
            var offset = 56;  // Integer | Start position. (optional)  (default to 0)
            var limit = 56;  // Integer | Total number of elements returned. (optional)  (default to 10)
            var assetIds = new array[Integer](); // array[Integer] | Asset IDs separated by comma. (optional) 

            try
            {
                // Get assets of tag
                inline_response_200_8 result = apiInstance.getAssetsTag(queryOption, ownerId, offset, limit, assetIds);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetsApi.getAssetsTag: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetsApi();
$queryOption = queryOption_example; // String | 
$ownerId = ; // AddressString | 
$offset = 56; // Integer | Start position.
$limit = 56; // Integer | Total number of elements returned.
$assetIds = ; // array[Integer] | Asset IDs separated by comma.

try {
    $result = $api_instance->getAssetsTag($queryOption, $ownerId, $offset, $limit, $assetIds);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetsApi->getAssetsTag: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetsApi;

my $api_instance = WWW::SwaggerClient::AssetsApi->new();
my $queryOption = queryOption_example; # String | 
my $ownerId = ; # AddressString | 
my $offset = 56; # Integer | Start position.
my $limit = 56; # Integer | Total number of elements returned.
my $assetIds = []; # array[Integer] | Asset IDs separated by comma.

eval { 
    my $result = $api_instance->getAssetsTag(queryOption => $queryOption, ownerId => $ownerId, offset => $offset, limit => $limit, assetIds => $assetIds);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetsApi->getAssetsTag: $@\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.AssetsApi()
queryOption = queryOption_example # String | 
ownerId =  # AddressString |  (optional)
offset = 56 # Integer | Start position. (optional) (default to 0)
limit = 56 # Integer | Total number of elements returned. (optional) (default to 10)
assetIds =  # array[Integer] | Asset IDs separated by comma. (optional)

try: 
    # Get assets of tag
    api_response = api_instance.get_assets_tag(queryOption, ownerId=ownerId, offset=offset, limit=limit, assetIds=assetIds)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetsApi->getAssetsTag: %s\n" % e)

Parameters

Query parameters
Name Description
queryOption*
String
Required
ownerId
AddressString
offset
Integer
Start position.
limit
Integer
Total number of elements returned.
assetIds
array[Integer]
Asset IDs separated by comma.

Responses

Status: 200 - List of tags


getRegisteredAssets

Get assets

Retrieves assets list. Depending on your goals, set the value of the `queryOption` field: - `queryOption`=`own_assets` - and specify fields: `ownerId`, `offset`, `limit` - `queryOption='by_ids'` - and specify fields: `assetIds`


/assets/register

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://34.69.151.182:8080/api/assets/register?queryOption=&ownerId=&offset=&limit=&assetIds="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetsApi;

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

public class AssetsApiExample {

    public static void main(String[] args) {
        
        AssetsApi apiInstance = new AssetsApi();
        String queryOption = queryOption_example; // String | 
        AddressString ownerId = ; // AddressString | 
        Integer offset = 56; // Integer | Start position.
        Integer limit = 56; // Integer | Total number of elements returned.
        array[Integer] assetIds = ; // array[Integer] | Asset IDs separated by comma.
        try {
            inline_response_200_6 result = apiInstance.getRegisteredAssets(queryOption, ownerId, offset, limit, assetIds);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetsApi#getRegisteredAssets");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetsApi;

public class AssetsApiExample {

    public static void main(String[] args) {
        AssetsApi apiInstance = new AssetsApi();
        String queryOption = queryOption_example; // String | 
        AddressString ownerId = ; // AddressString | 
        Integer offset = 56; // Integer | Start position.
        Integer limit = 56; // Integer | Total number of elements returned.
        array[Integer] assetIds = ; // array[Integer] | Asset IDs separated by comma.
        try {
            inline_response_200_6 result = apiInstance.getRegisteredAssets(queryOption, ownerId, offset, limit, assetIds);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetsApi#getRegisteredAssets");
            e.printStackTrace();
        }
    }
}
String *queryOption = queryOption_example; // 
AddressString *ownerId = ; //  (optional)
Integer *offset = 56; // Start position. (optional) (default to 0)
Integer *limit = 56; // Total number of elements returned. (optional) (default to 10)
array[Integer] *assetIds = ; // Asset IDs separated by comma. (optional)

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

// Get assets
[apiInstance getRegisteredAssetsWith:queryOption
    ownerId:ownerId
    offset:offset
    limit:limit
    assetIds:assetIds
              completionHandler: ^(inline_response_200_6 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

var api = new ThePersonalDigitalSpacesApi.AssetsApi()
var queryOption = queryOption_example; // {{String}} 
var opts = { 
  'ownerId': , // {{AddressString}} 
  'offset': 56, // {{Integer}} Start position.
  'limit': 56, // {{Integer}} Total number of elements returned.
  'assetIds':  // {{array[Integer]}} Asset IDs separated by comma.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getRegisteredAssets(queryOption, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new AssetsApi();
            var queryOption = queryOption_example;  // String | 
            var ownerId = new AddressString(); // AddressString |  (optional) 
            var offset = 56;  // Integer | Start position. (optional)  (default to 0)
            var limit = 56;  // Integer | Total number of elements returned. (optional)  (default to 10)
            var assetIds = new array[Integer](); // array[Integer] | Asset IDs separated by comma. (optional) 

            try
            {
                // Get assets
                inline_response_200_6 result = apiInstance.getRegisteredAssets(queryOption, ownerId, offset, limit, assetIds);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetsApi.getRegisteredAssets: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetsApi();
$queryOption = queryOption_example; // String | 
$ownerId = ; // AddressString | 
$offset = 56; // Integer | Start position.
$limit = 56; // Integer | Total number of elements returned.
$assetIds = ; // array[Integer] | Asset IDs separated by comma.

try {
    $result = $api_instance->getRegisteredAssets($queryOption, $ownerId, $offset, $limit, $assetIds);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetsApi->getRegisteredAssets: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetsApi;

my $api_instance = WWW::SwaggerClient::AssetsApi->new();
my $queryOption = queryOption_example; # String | 
my $ownerId = ; # AddressString | 
my $offset = 56; # Integer | Start position.
my $limit = 56; # Integer | Total number of elements returned.
my $assetIds = []; # array[Integer] | Asset IDs separated by comma.

eval { 
    my $result = $api_instance->getRegisteredAssets(queryOption => $queryOption, ownerId => $ownerId, offset => $offset, limit => $limit, assetIds => $assetIds);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetsApi->getRegisteredAssets: $@\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.AssetsApi()
queryOption = queryOption_example # String | 
ownerId =  # AddressString |  (optional)
offset = 56 # Integer | Start position. (optional) (default to 0)
limit = 56 # Integer | Total number of elements returned. (optional) (default to 10)
assetIds =  # array[Integer] | Asset IDs separated by comma. (optional)

try: 
    # Get assets
    api_response = api_instance.get_registered_assets(queryOption, ownerId=ownerId, offset=offset, limit=limit, assetIds=assetIds)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetsApi->getRegisteredAssets: %s\n" % e)

Parameters

Query parameters
Name Description
queryOption*
String
Required
ownerId
AddressString
offset
Integer
Start position.
limit
Integer
Total number of elements returned.
assetIds
array[Integer]
Asset IDs separated by comma.

Responses

Status: 200 - List of assets


Credentials

systemCreateCredentials

Create user credentials

Creates a new user credentials. Please see DASE Accounts for more information. The common keys object consists of an userId, public key, and private key. DASE accounts require Żetonium credentials, but can include Ethereum (or other external blockchains) credentials as well.


/system/create/credentials

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://34.69.151.182:8080/api/system/create/credentials"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CredentialsApi;

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

public class CredentialsApiExample {

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

public class CredentialsApiExample {

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

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

// Create user credentials
[apiInstance systemCreateCredentialsWithCompletionHandler: 
              ^(inline_response_200_10 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

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

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

            var apiInstance = new CredentialsApi();

            try
            {
                // Create user credentials
                inline_response_200_10 result = apiInstance.systemCreateCredentials();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CredentialsApi.systemCreateCredentials: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try: 
    # Create user credentials
    api_response = api_instance.system_create_credentials()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CredentialsApi->systemCreateCredentials: %s\n" % e)

Parameters

Responses

Status: 200 - Create user credentials


License

postLicenseOfferOwnership

Ownership license offer

Request body schema depends on `tradeType` (see examples)


/licenses/offer/ownership

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://34.69.151.182:8080/api/licenses/offer/ownership"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LicenseApi;

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

public class LicenseApiExample {

    public static void main(String[] args) {
        
        LicenseApi apiInstance = new LicenseApi();
        Offer_ownership_body body = {
  "value" : {
    "tradeType" : "SELL",
    "buyerId" : "0x11156f80b94c39016c08c67c6d4de9e3c3009f14",
    "sellerId" : "0x22256f80b94c39016c08c67c6d4de9e3c3009f14",
    "sellerCredentials" : "0x2221fd2310e9500562009ddcfbad7096ed67640eb9d8d795d4c50c5a5be969fe",
    "assetId" : 10234,
    "minLeosPrice" : 10000,
    "termSheetTemplate" : "licenseUnrestrictedTerms"
  }
}; // Offer_ownership_body | 
        try {
            PostLicenseOfferCommonResponse result = apiInstance.postLicenseOfferOwnership(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LicenseApi#postLicenseOfferOwnership");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LicenseApi;

public class LicenseApiExample {

    public static void main(String[] args) {
        LicenseApi apiInstance = new LicenseApi();
        Offer_ownership_body body = {
  "value" : {
    "tradeType" : "SELL",
    "buyerId" : "0x11156f80b94c39016c08c67c6d4de9e3c3009f14",
    "sellerId" : "0x22256f80b94c39016c08c67c6d4de9e3c3009f14",
    "sellerCredentials" : "0x2221fd2310e9500562009ddcfbad7096ed67640eb9d8d795d4c50c5a5be969fe",
    "assetId" : 10234,
    "minLeosPrice" : 10000,
    "termSheetTemplate" : "licenseUnrestrictedTerms"
  }
}; // Offer_ownership_body | 
        try {
            PostLicenseOfferCommonResponse result = apiInstance.postLicenseOfferOwnership(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LicenseApi#postLicenseOfferOwnership");
            e.printStackTrace();
        }
    }
}
Offer_ownership_body *body = {
  "value" : {
    "tradeType" : "SELL",
    "buyerId" : "0x11156f80b94c39016c08c67c6d4de9e3c3009f14",
    "sellerId" : "0x22256f80b94c39016c08c67c6d4de9e3c3009f14",
    "sellerCredentials" : "0x2221fd2310e9500562009ddcfbad7096ed67640eb9d8d795d4c50c5a5be969fe",
    "assetId" : 10234,
    "minLeosPrice" : 10000,
    "termSheetTemplate" : "licenseUnrestrictedTerms"
  }
}; //  (optional)

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

// Ownership license offer
[apiInstance postLicenseOfferOwnershipWith:body
              completionHandler: ^(PostLicenseOfferCommonResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

var api = new ThePersonalDigitalSpacesApi.LicenseApi()
var opts = { 
  'body': {
  "value" : {
    "tradeType" : "SELL",
    "buyerId" : "0x11156f80b94c39016c08c67c6d4de9e3c3009f14",
    "sellerId" : "0x22256f80b94c39016c08c67c6d4de9e3c3009f14",
    "sellerCredentials" : "0x2221fd2310e9500562009ddcfbad7096ed67640eb9d8d795d4c50c5a5be969fe",
    "assetId" : 10234,
    "minLeosPrice" : 10000,
    "termSheetTemplate" : "licenseUnrestrictedTerms"
  }
} // {{Offer_ownership_body}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postLicenseOfferOwnership(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new LicenseApi();
            var body = new Offer_ownership_body(); // Offer_ownership_body |  (optional) 

            try
            {
                // Ownership license offer
                PostLicenseOfferCommonResponse result = apiInstance.postLicenseOfferOwnership(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LicenseApi.postLicenseOfferOwnership: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiLicenseApi();
$body = {
  "value" : {
    "tradeType" : "SELL",
    "buyerId" : "0x11156f80b94c39016c08c67c6d4de9e3c3009f14",
    "sellerId" : "0x22256f80b94c39016c08c67c6d4de9e3c3009f14",
    "sellerCredentials" : "0x2221fd2310e9500562009ddcfbad7096ed67640eb9d8d795d4c50c5a5be969fe",
    "assetId" : 10234,
    "minLeosPrice" : 10000,
    "termSheetTemplate" : "licenseUnrestrictedTerms"
  }
}; // Offer_ownership_body | 

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

my $api_instance = WWW::SwaggerClient::LicenseApi->new();
my $body = WWW::SwaggerClient::Object::Offer_ownership_body->new(); # Offer_ownership_body | 

eval { 
    my $result = $api_instance->postLicenseOfferOwnership(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LicenseApi->postLicenseOfferOwnership: $@\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.LicenseApi()
body = {
  "value" : {
    "tradeType" : "SELL",
    "buyerId" : "0x11156f80b94c39016c08c67c6d4de9e3c3009f14",
    "sellerId" : "0x22256f80b94c39016c08c67c6d4de9e3c3009f14",
    "sellerCredentials" : "0x2221fd2310e9500562009ddcfbad7096ed67640eb9d8d795d4c50c5a5be969fe",
    "assetId" : 10234,
    "minLeosPrice" : 10000,
    "termSheetTemplate" : "licenseUnrestrictedTerms"
  }
} # Offer_ownership_body |  (optional)

try: 
    # Ownership license offer
    api_response = api_instance.post_license_offer_ownership(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LicenseApi->postLicenseOfferOwnership: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - Transfer ownership offer status

Status: 4XX - Unauthorized


Relations

getRoyaltyRelation

Get royalty relation

Get royalty relation


/assets/relate/royalty

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://34.69.151.182:8080/api/assets/relate/royalty?paidAssetId=&beneficiaryAssetId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RelationsApi;

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

public class RelationsApiExample {

    public static void main(String[] args) {
        
        RelationsApi apiInstance = new RelationsApi();
        Integer paidAssetId = 56; // Integer | Asset ID which makes its owner to pay
        Integer beneficiaryAssetId = 56; // Integer | Asset ID which accumulates royalities for its owner
        try {
            inline_response_200_4 result = apiInstance.getRoyaltyRelation(paidAssetId, beneficiaryAssetId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RelationsApi#getRoyaltyRelation");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RelationsApi;

public class RelationsApiExample {

    public static void main(String[] args) {
        RelationsApi apiInstance = new RelationsApi();
        Integer paidAssetId = 56; // Integer | Asset ID which makes its owner to pay
        Integer beneficiaryAssetId = 56; // Integer | Asset ID which accumulates royalities for its owner
        try {
            inline_response_200_4 result = apiInstance.getRoyaltyRelation(paidAssetId, beneficiaryAssetId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RelationsApi#getRoyaltyRelation");
            e.printStackTrace();
        }
    }
}
Integer *paidAssetId = 56; // Asset ID which makes its owner to pay (optional)
Integer *beneficiaryAssetId = 56; // Asset ID which accumulates royalities for its owner (optional)

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

// Get royalty relation
[apiInstance getRoyaltyRelationWith:paidAssetId
    beneficiaryAssetId:beneficiaryAssetId
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

var api = new ThePersonalDigitalSpacesApi.RelationsApi()
var opts = { 
  'paidAssetId': 56, // {{Integer}} Asset ID which makes its owner to pay
  'beneficiaryAssetId': 56 // {{Integer}} Asset ID which accumulates royalities for its owner
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getRoyaltyRelation(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new RelationsApi();
            var paidAssetId = 56;  // Integer | Asset ID which makes its owner to pay (optional) 
            var beneficiaryAssetId = 56;  // Integer | Asset ID which accumulates royalities for its owner (optional) 

            try
            {
                // Get royalty relation
                inline_response_200_4 result = apiInstance.getRoyaltyRelation(paidAssetId, beneficiaryAssetId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RelationsApi.getRoyaltyRelation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRelationsApi();
$paidAssetId = 56; // Integer | Asset ID which makes its owner to pay
$beneficiaryAssetId = 56; // Integer | Asset ID which accumulates royalities for its owner

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

my $api_instance = WWW::SwaggerClient::RelationsApi->new();
my $paidAssetId = 56; # Integer | Asset ID which makes its owner to pay
my $beneficiaryAssetId = 56; # Integer | Asset ID which accumulates royalities for its owner

eval { 
    my $result = $api_instance->getRoyaltyRelation(paidAssetId => $paidAssetId, beneficiaryAssetId => $beneficiaryAssetId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RelationsApi->getRoyaltyRelation: $@\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.RelationsApi()
paidAssetId = 56 # Integer | Asset ID which makes its owner to pay (optional)
beneficiaryAssetId = 56 # Integer | Asset ID which accumulates royalities for its owner (optional)

try: 
    # Get royalty relation
    api_response = api_instance.get_royalty_relation(paidAssetId=paidAssetId, beneficiaryAssetId=beneficiaryAssetId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RelationsApi->getRoyaltyRelation: %s\n" % e)

Parameters

Query parameters
Name Description
paidAssetId
Integer
Asset ID which makes its owner to pay
beneficiaryAssetId
Integer
Asset ID which accumulates royalities for its owner

Responses

Status: 200 - Get royalty relation


getTaggingRelation

Get tagging relation

Get tagging relation


/assets/relate/tagged

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://34.69.151.182:8080/api/assets/relate/tagged?queryOption=&assetId=&tagId=&buyerId=&sellerId=&offset=&limit="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RelationsApi;

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

public class RelationsApiExample {

    public static void main(String[] args) {
        
        RelationsApi apiInstance = new RelationsApi();
        String queryOption = queryOption_example; // String | one from the list: 'by_id', 'own_tags', 'is_child', 'tags', 'encrypted_key'
        Integer assetId = 56; // Integer | 
        Integer tagId = 56; // Integer | 
        AddressString buyerId = ; // AddressString | 
        AddressString sellerId = ; // AddressString | 
        Integer offset = 56; // Integer | 
        Integer limit = 56; // Integer | 
        try {
            inline_response_200_5 result = apiInstance.getTaggingRelation(queryOption, assetId, tagId, buyerId, sellerId, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RelationsApi#getTaggingRelation");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RelationsApi;

public class RelationsApiExample {

    public static void main(String[] args) {
        RelationsApi apiInstance = new RelationsApi();
        String queryOption = queryOption_example; // String | one from the list: 'by_id', 'own_tags', 'is_child', 'tags', 'encrypted_key'
        Integer assetId = 56; // Integer | 
        Integer tagId = 56; // Integer | 
        AddressString buyerId = ; // AddressString | 
        AddressString sellerId = ; // AddressString | 
        Integer offset = 56; // Integer | 
        Integer limit = 56; // Integer | 
        try {
            inline_response_200_5 result = apiInstance.getTaggingRelation(queryOption, assetId, tagId, buyerId, sellerId, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RelationsApi#getTaggingRelation");
            e.printStackTrace();
        }
    }
}
String *queryOption = queryOption_example; // one from the list: 'by_id', 'own_tags', 'is_child', 'tags', 'encrypted_key'
Integer *assetId = 56; //  (optional)
Integer *tagId = 56; //  (optional)
AddressString *buyerId = ; //  (optional)
AddressString *sellerId = ; //  (optional)
Integer *offset = 56; //  (optional)
Integer *limit = 56; //  (optional)

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

// Get tagging relation
[apiInstance getTaggingRelationWith:queryOption
    assetId:assetId
    tagId:tagId
    buyerId:buyerId
    sellerId:sellerId
    offset:offset
    limit:limit
              completionHandler: ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

var api = new ThePersonalDigitalSpacesApi.RelationsApi()
var queryOption = queryOption_example; // {{String}} one from the list: 'by_id', 'own_tags', 'is_child', 'tags', 'encrypted_key'
var opts = { 
  'assetId': 56, // {{Integer}} 
  'tagId': 56, // {{Integer}} 
  'buyerId': , // {{AddressString}} 
  'sellerId': , // {{AddressString}} 
  'offset': 56, // {{Integer}} 
  'limit': 56 // {{Integer}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTaggingRelation(queryOption, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new RelationsApi();
            var queryOption = queryOption_example;  // String | one from the list: 'by_id', 'own_tags', 'is_child', 'tags', 'encrypted_key'
            var assetId = 56;  // Integer |  (optional) 
            var tagId = 56;  // Integer |  (optional) 
            var buyerId = new AddressString(); // AddressString |  (optional) 
            var sellerId = new AddressString(); // AddressString |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var limit = 56;  // Integer |  (optional) 

            try
            {
                // Get tagging relation
                inline_response_200_5 result = apiInstance.getTaggingRelation(queryOption, assetId, tagId, buyerId, sellerId, offset, limit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RelationsApi.getTaggingRelation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRelationsApi();
$queryOption = queryOption_example; // String | one from the list: 'by_id', 'own_tags', 'is_child', 'tags', 'encrypted_key'
$assetId = 56; // Integer | 
$tagId = 56; // Integer | 
$buyerId = ; // AddressString | 
$sellerId = ; // AddressString | 
$offset = 56; // Integer | 
$limit = 56; // Integer | 

try {
    $result = $api_instance->getTaggingRelation($queryOption, $assetId, $tagId, $buyerId, $sellerId, $offset, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RelationsApi->getTaggingRelation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RelationsApi;

my $api_instance = WWW::SwaggerClient::RelationsApi->new();
my $queryOption = queryOption_example; # String | one from the list: 'by_id', 'own_tags', 'is_child', 'tags', 'encrypted_key'
my $assetId = 56; # Integer | 
my $tagId = 56; # Integer | 
my $buyerId = ; # AddressString | 
my $sellerId = ; # AddressString | 
my $offset = 56; # Integer | 
my $limit = 56; # Integer | 

eval { 
    my $result = $api_instance->getTaggingRelation(queryOption => $queryOption, assetId => $assetId, tagId => $tagId, buyerId => $buyerId, sellerId => $sellerId, offset => $offset, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RelationsApi->getTaggingRelation: $@\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.RelationsApi()
queryOption = queryOption_example # String | one from the list: 'by_id', 'own_tags', 'is_child', 'tags', 'encrypted_key'
assetId = 56 # Integer |  (optional)
tagId = 56 # Integer |  (optional)
buyerId =  # AddressString |  (optional)
sellerId =  # AddressString |  (optional)
offset = 56 # Integer |  (optional)
limit = 56 # Integer |  (optional)

try: 
    # Get tagging relation
    api_response = api_instance.get_tagging_relation(queryOption, assetId=assetId, tagId=tagId, buyerId=buyerId, sellerId=sellerId, offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RelationsApi->getTaggingRelation: %s\n" % e)

Parameters

Query parameters
Name Description
queryOption*
String
one from the list: 'by_id', 'own_tags', 'is_child', 'tags', 'encrypted_key'
Required
assetId
Integer
tagId
Integer
buyerId
AddressString
sellerId
AddressString
offset
Integer
limit
Integer

Responses

Status: 200 - Get tagging relation


System

getSystemInfo

Get system info

Get system info


/system

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://34.69.151.182:8080/api/system"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SystemApi;

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

public class SystemApiExample {

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

public class SystemApiExample {

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

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

// Get system info
[apiInstance getSystemInfoWithCompletionHandler: 
              ^(inline_response_200_11 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

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

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

            var apiInstance = new SystemApi();

            try
            {
                // Get system info
                inline_response_200_11 result = apiInstance.getSystemInfo();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SystemApi.getSystemInfo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try: 
    # Get system info
    api_response = api_instance.get_system_info()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SystemApi->getSystemInfo: %s\n" % e)

Parameters

Responses

Status: 200 - Get system info


Tags

assetsRegisterSat

Register a SAT

Register a SAT


/assets/register/sat

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://34.69.151.182:8080/api/assets/register/sat"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagsApi;

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

public class TagsApiExample {

    public static void main(String[] args) {
        
        TagsApi apiInstance = new TagsApi();
        Register_sat_body body = ; // Register_sat_body | Register a SAT
        try {
            'Integer' result = apiInstance.assetsRegisterSat(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagsApi#assetsRegisterSat");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagsApi;

public class TagsApiExample {

    public static void main(String[] args) {
        TagsApi apiInstance = new TagsApi();
        Register_sat_body body = ; // Register_sat_body | Register a SAT
        try {
            'Integer' result = apiInstance.assetsRegisterSat(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagsApi#assetsRegisterSat");
            e.printStackTrace();
        }
    }
}
Register_sat_body *body = ; // Register a SAT (optional)

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

// Register a SAT
[apiInstance assetsRegisterSatWith:body
              completionHandler: ^('Integer' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

var api = new ThePersonalDigitalSpacesApi.TagsApi()
var opts = { 
  'body':  // {{Register_sat_body}} Register a SAT
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.assetsRegisterSat(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new TagsApi();
            var body = new Register_sat_body(); // Register_sat_body | Register a SAT (optional) 

            try
            {
                // Register a SAT
                'Integer' result = apiInstance.assetsRegisterSat(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagsApi.assetsRegisterSat: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagsApi();
$body = ; // Register_sat_body | Register a SAT

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

my $api_instance = WWW::SwaggerClient::TagsApi->new();
my $body = WWW::SwaggerClient::Object::Register_sat_body->new(); # Register_sat_body | Register a SAT

eval { 
    my $result = $api_instance->assetsRegisterSat(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagsApi->assetsRegisterSat: $@\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.TagsApi()
body =  # Register_sat_body | Register a SAT (optional)

try: 
    # Register a SAT
    api_response = api_instance.assets_register_sat(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagsApi->assetsRegisterSat: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - Register a SAT


tagAsset

Tag asset

Marks given asset by a given tag if allowed.


/assets/relate/tagged

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://34.69.151.182:8080/api/assets/relate/tagged"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagsApi;

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

public class TagsApiExample {

    public static void main(String[] args) {
        
        TagsApi apiInstance = new TagsApi();
        Relate_tagged_body body = ; // Relate_tagged_body | 
        try {
            'Boolean' result = apiInstance.tagAsset(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagsApi#tagAsset");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagsApi;

public class TagsApiExample {

    public static void main(String[] args) {
        TagsApi apiInstance = new TagsApi();
        Relate_tagged_body body = ; // Relate_tagged_body | 
        try {
            'Boolean' result = apiInstance.tagAsset(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagsApi#tagAsset");
            e.printStackTrace();
        }
    }
}
Relate_tagged_body *body = ; //  (optional)

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

// Tag asset
[apiInstance tagAssetWith:body
              completionHandler: ^('Boolean' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

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

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

            var apiInstance = new TagsApi();
            var body = new Relate_tagged_body(); // Relate_tagged_body |  (optional) 

            try
            {
                // Tag asset
                'Boolean' result = apiInstance.tagAsset(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagsApi.tagAsset: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagsApi();
$body = ; // Relate_tagged_body | 

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

my $api_instance = WWW::SwaggerClient::TagsApi->new();
my $body = WWW::SwaggerClient::Object::Relate_tagged_body->new(); # Relate_tagged_body | 

eval { 
    my $result = $api_instance->tagAsset(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagsApi->tagAsset: $@\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.TagsApi()
body =  # Relate_tagged_body |  (optional)

try: 
    # Tag asset
    api_response = api_instance.tag_asset(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagsApi->tagAsset: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - Tag asset


Tickets

assetsUploadFileGet

Get file upload ticket


/assets/upload/file

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://34.69.151.182:8080/api/assets/upload/file?ownerId=&vaultId=&ownerPublicKey="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TicketsApi;

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

public class TicketsApiExample {

    public static void main(String[] args) {
        
        TicketsApi apiInstance = new TicketsApi();
        AddressString ownerId = ; // AddressString | User ID of an owner
        Integer vaultId = 56; // Integer | Vault ID
        String ownerPublicKey = ownerPublicKey_example; // String | Owner public key
        try {
            inline_response_200 result = apiInstance.assetsUploadFileGet(ownerId, vaultId, ownerPublicKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TicketsApi#assetsUploadFileGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TicketsApi;

public class TicketsApiExample {

    public static void main(String[] args) {
        TicketsApi apiInstance = new TicketsApi();
        AddressString ownerId = ; // AddressString | User ID of an owner
        Integer vaultId = 56; // Integer | Vault ID
        String ownerPublicKey = ownerPublicKey_example; // String | Owner public key
        try {
            inline_response_200 result = apiInstance.assetsUploadFileGet(ownerId, vaultId, ownerPublicKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TicketsApi#assetsUploadFileGet");
            e.printStackTrace();
        }
    }
}
AddressString *ownerId = ; // User ID of an owner (optional)
Integer *vaultId = 56; // Vault ID (optional)
String *ownerPublicKey = ownerPublicKey_example; // Owner public key (optional)

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

// Get file upload ticket
[apiInstance assetsUploadFileGetWith:ownerId
    vaultId:vaultId
    ownerPublicKey:ownerPublicKey
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

var api = new ThePersonalDigitalSpacesApi.TicketsApi()
var opts = { 
  'ownerId': , // {{AddressString}} User ID of an owner
  'vaultId': 56, // {{Integer}} Vault ID
  'ownerPublicKey': ownerPublicKey_example // {{String}} Owner public key
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.assetsUploadFileGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new TicketsApi();
            var ownerId = new AddressString(); // AddressString | User ID of an owner (optional) 
            var vaultId = 56;  // Integer | Vault ID (optional) 
            var ownerPublicKey = ownerPublicKey_example;  // String | Owner public key (optional) 

            try
            {
                // Get file upload ticket
                inline_response_200 result = apiInstance.assetsUploadFileGet(ownerId, vaultId, ownerPublicKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TicketsApi.assetsUploadFileGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTicketsApi();
$ownerId = ; // AddressString | User ID of an owner
$vaultId = 56; // Integer | Vault ID
$ownerPublicKey = ownerPublicKey_example; // String | Owner public key

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

my $api_instance = WWW::SwaggerClient::TicketsApi->new();
my $ownerId = ; # AddressString | User ID of an owner
my $vaultId = 56; # Integer | Vault ID
my $ownerPublicKey = ownerPublicKey_example; # String | Owner public key

eval { 
    my $result = $api_instance->assetsUploadFileGet(ownerId => $ownerId, vaultId => $vaultId, ownerPublicKey => $ownerPublicKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TicketsApi->assetsUploadFileGet: $@\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.TicketsApi()
ownerId =  # AddressString | User ID of an owner (optional)
vaultId = 56 # Integer | Vault ID (optional)
ownerPublicKey = ownerPublicKey_example # String | Owner public key (optional)

try: 
    # Get file upload ticket
    api_response = api_instance.assets_upload_file_get(ownerId=ownerId, vaultId=vaultId, ownerPublicKey=ownerPublicKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TicketsApi->assetsUploadFileGet: %s\n" % e)

Parameters

Query parameters
Name Description
ownerId
AddressString
User ID of an owner
vaultId
Integer
Vault ID
ownerPublicKey
String
Owner public key

Responses

Status: 200 - Ticket


getFileAccessTiсket

Get file access ticket

Get file access ticket


/assets/access/file

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://34.69.151.182:8080/api/assets/access/file?buyerId=&bulkSellerId=&accessType=&vaultId=&publicKey=&assetIds=&sellerIds=&tagId=&argsBuyerSignature=&userPubKey="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TicketsApi;

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

public class TicketsApiExample {

    public static void main(String[] args) {
        
        TicketsApi apiInstance = new TicketsApi();
        AccessTypes accessType = ; // AccessTypes | Token types: 'UPLOAD', 'ACCESS', 'BULK'
        AddressString buyerId = ; // AddressString | User ID (i.e. buyer - for ACCESS and BULK token types)
        AddressString bulkSellerId = ; // AddressString | Seller ID for BULK token types)
        Integer vaultId = 56; // Integer | Vault ID
        String publicKey = publicKey_example; // String | User public key
        array[Integer] assetIds = ; // array[Integer] | Asset IDs comma separated array
        array[AddressString] sellerIds = ; // array[AddressString] | Seller comma separaded addresses Ids
        Integer tagId = 56; // Integer | Tag ID
        String argsBuyerSignature = argsBuyerSignature_example; // String | Signature
        String userPubKey = userPubKey_example; // String | 
        try {
            inline_response_200_1 result = apiInstance.getFileAccessTiсket(accessType, buyerId, bulkSellerId, vaultId, publicKey, assetIds, sellerIds, tagId, argsBuyerSignature, userPubKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TicketsApi#getFileAccessTiсket");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TicketsApi;

public class TicketsApiExample {

    public static void main(String[] args) {
        TicketsApi apiInstance = new TicketsApi();
        AccessTypes accessType = ; // AccessTypes | Token types: 'UPLOAD', 'ACCESS', 'BULK'
        AddressString buyerId = ; // AddressString | User ID (i.e. buyer - for ACCESS and BULK token types)
        AddressString bulkSellerId = ; // AddressString | Seller ID for BULK token types)
        Integer vaultId = 56; // Integer | Vault ID
        String publicKey = publicKey_example; // String | User public key
        array[Integer] assetIds = ; // array[Integer] | Asset IDs comma separated array
        array[AddressString] sellerIds = ; // array[AddressString] | Seller comma separaded addresses Ids
        Integer tagId = 56; // Integer | Tag ID
        String argsBuyerSignature = argsBuyerSignature_example; // String | Signature
        String userPubKey = userPubKey_example; // String | 
        try {
            inline_response_200_1 result = apiInstance.getFileAccessTiсket(accessType, buyerId, bulkSellerId, vaultId, publicKey, assetIds, sellerIds, tagId, argsBuyerSignature, userPubKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TicketsApi#getFileAccessTiсket");
            e.printStackTrace();
        }
    }
}
AccessTypes *accessType = ; // Token types: 'UPLOAD', 'ACCESS', 'BULK'
AddressString *buyerId = ; // User ID (i.e. buyer - for ACCESS and BULK token types) (optional)
AddressString *bulkSellerId = ; // Seller ID for BULK token types) (optional)
Integer *vaultId = 56; // Vault ID (optional)
String *publicKey = publicKey_example; // User public key (optional)
array[Integer] *assetIds = ; // Asset IDs comma separated array (optional)
array[AddressString] *sellerIds = ; // Seller comma separaded addresses Ids (optional)
Integer *tagId = 56; // Tag ID (optional)
String *argsBuyerSignature = argsBuyerSignature_example; // Signature (optional)
String *userPubKey = userPubKey_example; //  (optional)

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

// Get file access ticket
[apiInstance getFileAccessTiсketWith:accessType
    buyerId:buyerId
    bulkSellerId:bulkSellerId
    vaultId:vaultId
    publicKey:publicKey
    assetIds:assetIds
    sellerIds:sellerIds
    tagId:tagId
    argsBuyerSignature:argsBuyerSignature
    userPubKey:userPubKey
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

var api = new ThePersonalDigitalSpacesApi.TicketsApi()
var accessType = ; // {{AccessTypes}} Token types: 'UPLOAD', 'ACCESS', 'BULK'
var opts = { 
  'buyerId': , // {{AddressString}} User ID (i.e. buyer - for ACCESS and BULK token types)
  'bulkSellerId': , // {{AddressString}} Seller ID for BULK token types)
  'vaultId': 56, // {{Integer}} Vault ID
  'publicKey': publicKey_example, // {{String}} User public key
  'assetIds': , // {{array[Integer]}} Asset IDs comma separated array
  'sellerIds': , // {{array[AddressString]}} Seller comma separaded addresses Ids
  'tagId': 56, // {{Integer}} Tag ID
  'argsBuyerSignature': argsBuyerSignature_example, // {{String}} Signature
  'userPubKey': userPubKey_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getFileAccessTiсket(accessType, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getFileAccessTiсketExample
    {
        public void main()
        {

            var apiInstance = new TicketsApi();
            var accessType = new AccessTypes(); // AccessTypes | Token types: 'UPLOAD', 'ACCESS', 'BULK'
            var buyerId = new AddressString(); // AddressString | User ID (i.e. buyer - for ACCESS and BULK token types) (optional) 
            var bulkSellerId = new AddressString(); // AddressString | Seller ID for BULK token types) (optional) 
            var vaultId = 56;  // Integer | Vault ID (optional) 
            var publicKey = publicKey_example;  // String | User public key (optional) 
            var assetIds = new array[Integer](); // array[Integer] | Asset IDs comma separated array (optional) 
            var sellerIds = new array[AddressString](); // array[AddressString] | Seller comma separaded addresses Ids (optional) 
            var tagId = 56;  // Integer | Tag ID (optional) 
            var argsBuyerSignature = argsBuyerSignature_example;  // String | Signature (optional) 
            var userPubKey = userPubKey_example;  // String |  (optional) 

            try
            {
                // Get file access ticket
                inline_response_200_1 result = apiInstance.getFileAccessTiсket(accessType, buyerId, bulkSellerId, vaultId, publicKey, assetIds, sellerIds, tagId, argsBuyerSignature, userPubKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TicketsApi.getFileAccessTiсket: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTicketsApi();
$accessType = ; // AccessTypes | Token types: 'UPLOAD', 'ACCESS', 'BULK'
$buyerId = ; // AddressString | User ID (i.e. buyer - for ACCESS and BULK token types)
$bulkSellerId = ; // AddressString | Seller ID for BULK token types)
$vaultId = 56; // Integer | Vault ID
$publicKey = publicKey_example; // String | User public key
$assetIds = ; // array[Integer] | Asset IDs comma separated array
$sellerIds = ; // array[AddressString] | Seller comma separaded addresses Ids
$tagId = 56; // Integer | Tag ID
$argsBuyerSignature = argsBuyerSignature_example; // String | Signature
$userPubKey = userPubKey_example; // String | 

try {
    $result = $api_instance->getFileAccessTiсket($accessType, $buyerId, $bulkSellerId, $vaultId, $publicKey, $assetIds, $sellerIds, $tagId, $argsBuyerSignature, $userPubKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TicketsApi->getFileAccessTiсket: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TicketsApi;

my $api_instance = WWW::SwaggerClient::TicketsApi->new();
my $accessType = ; # AccessTypes | Token types: 'UPLOAD', 'ACCESS', 'BULK'
my $buyerId = ; # AddressString | User ID (i.e. buyer - for ACCESS and BULK token types)
my $bulkSellerId = ; # AddressString | Seller ID for BULK token types)
my $vaultId = 56; # Integer | Vault ID
my $publicKey = publicKey_example; # String | User public key
my $assetIds = []; # array[Integer] | Asset IDs comma separated array
my $sellerIds = []; # array[AddressString] | Seller comma separaded addresses Ids
my $tagId = 56; # Integer | Tag ID
my $argsBuyerSignature = argsBuyerSignature_example; # String | Signature
my $userPubKey = userPubKey_example; # String | 

eval { 
    my $result = $api_instance->getFileAccessTiсket(accessType => $accessType, buyerId => $buyerId, bulkSellerId => $bulkSellerId, vaultId => $vaultId, publicKey => $publicKey, assetIds => $assetIds, sellerIds => $sellerIds, tagId => $tagId, argsBuyerSignature => $argsBuyerSignature, userPubKey => $userPubKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TicketsApi->getFileAccessTiсket: $@\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.TicketsApi()
accessType =  # AccessTypes | Token types: 'UPLOAD', 'ACCESS', 'BULK'
buyerId =  # AddressString | User ID (i.e. buyer - for ACCESS and BULK token types) (optional)
bulkSellerId =  # AddressString | Seller ID for BULK token types) (optional)
vaultId = 56 # Integer | Vault ID (optional)
publicKey = publicKey_example # String | User public key (optional)
assetIds =  # array[Integer] | Asset IDs comma separated array (optional)
sellerIds =  # array[AddressString] | Seller comma separaded addresses Ids (optional)
tagId = 56 # Integer | Tag ID (optional)
argsBuyerSignature = argsBuyerSignature_example # String | Signature (optional)
userPubKey = userPubKey_example # String |  (optional)

try: 
    # Get file access ticket
    api_response = api_instance.get_file_access_tiсket(accessType, buyerId=buyerId, bulkSellerId=bulkSellerId, vaultId=vaultId, publicKey=publicKey, assetIds=assetIds, sellerIds=sellerIds, tagId=tagId, argsBuyerSignature=argsBuyerSignature, userPubKey=userPubKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TicketsApi->getFileAccessTiсket: %s\n" % e)

Parameters

Query parameters
Name Description
buyerId
AddressString
User ID (i.e. buyer - for ACCESS and BULK token types)
bulkSellerId
AddressString
Seller ID for BULK token types)
accessType*
AccessTypes
Token types: 'UPLOAD', 'ACCESS', 'BULK'
Required
vaultId
Integer
Vault ID
publicKey
String
User public key
assetIds
array[Integer]
Asset IDs comma separated array
sellerIds
array[AddressString]
Seller comma separaded addresses Ids
tagId
Integer
Tag ID
argsBuyerSignature
String
Signature
userPubKey
String

Responses

Status: 200 - Get file access ticket


getSatAccessTiсket

Get SAT access ticket

Get SAT access ticket


/assets/access/sat

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://34.69.151.182:8080/api/assets/access/sat?ownerId=&accessType=&ownerPublicKey=&assetId=&satId=&argsOwnerSignature="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TicketsApi;

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

public class TicketsApiExample {

    public static void main(String[] args) {
        
        TicketsApi apiInstance = new TicketsApi();
        AddressString ownerId = ; // AddressString | User ID of a SAT owner
        AccessTypes accessType = ; // AccessTypes | Only 'SAT' for now is allowed
        String ownerPublicKey = ownerPublicKey_example; // String | Owner public key
        Integer assetId = 56; // Integer | Asset ID to access
        Integer satId = 56; // Integer | SAT ID to access asset through
        String argsOwnerSignature = argsOwnerSignature_example; // String | Owner's signature
        try {
            inline_response_200_1 result = apiInstance.getSatAccessTiсket(ownerId, accessType, ownerPublicKey, assetId, satId, argsOwnerSignature);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TicketsApi#getSatAccessTiсket");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TicketsApi;

public class TicketsApiExample {

    public static void main(String[] args) {
        TicketsApi apiInstance = new TicketsApi();
        AddressString ownerId = ; // AddressString | User ID of a SAT owner
        AccessTypes accessType = ; // AccessTypes | Only 'SAT' for now is allowed
        String ownerPublicKey = ownerPublicKey_example; // String | Owner public key
        Integer assetId = 56; // Integer | Asset ID to access
        Integer satId = 56; // Integer | SAT ID to access asset through
        String argsOwnerSignature = argsOwnerSignature_example; // String | Owner's signature
        try {
            inline_response_200_1 result = apiInstance.getSatAccessTiсket(ownerId, accessType, ownerPublicKey, assetId, satId, argsOwnerSignature);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TicketsApi#getSatAccessTiсket");
            e.printStackTrace();
        }
    }
}
AddressString *ownerId = ; // User ID of a SAT owner
AccessTypes *accessType = ; // Only 'SAT' for now is allowed
String *ownerPublicKey = ownerPublicKey_example; // Owner public key
Integer *assetId = 56; // Asset ID to access
Integer *satId = 56; // SAT ID to access asset through
String *argsOwnerSignature = argsOwnerSignature_example; // Owner's signature

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

// Get SAT access ticket
[apiInstance getSatAccessTiсketWith:ownerId
    accessType:accessType
    ownerPublicKey:ownerPublicKey
    assetId:assetId
    satId:satId
    argsOwnerSignature:argsOwnerSignature
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

var api = new ThePersonalDigitalSpacesApi.TicketsApi()
var ownerId = ; // {{AddressString}} User ID of a SAT owner
var accessType = ; // {{AccessTypes}} Only 'SAT' for now is allowed
var ownerPublicKey = ownerPublicKey_example; // {{String}} Owner public key
var assetId = 56; // {{Integer}} Asset ID to access
var satId = 56; // {{Integer}} SAT ID to access asset through
var argsOwnerSignature = argsOwnerSignature_example; // {{String}} Owner's signature

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSatAccessTiсket(ownerId, accessType, ownerPublicKey, assetId, satId, argsOwnerSignature, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getSatAccessTiсketExample
    {
        public void main()
        {

            var apiInstance = new TicketsApi();
            var ownerId = new AddressString(); // AddressString | User ID of a SAT owner
            var accessType = new AccessTypes(); // AccessTypes | Only 'SAT' for now is allowed
            var ownerPublicKey = ownerPublicKey_example;  // String | Owner public key
            var assetId = 56;  // Integer | Asset ID to access
            var satId = 56;  // Integer | SAT ID to access asset through
            var argsOwnerSignature = argsOwnerSignature_example;  // String | Owner's signature

            try
            {
                // Get SAT access ticket
                inline_response_200_1 result = apiInstance.getSatAccessTiсket(ownerId, accessType, ownerPublicKey, assetId, satId, argsOwnerSignature);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TicketsApi.getSatAccessTiсket: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTicketsApi();
$ownerId = ; // AddressString | User ID of a SAT owner
$accessType = ; // AccessTypes | Only 'SAT' for now is allowed
$ownerPublicKey = ownerPublicKey_example; // String | Owner public key
$assetId = 56; // Integer | Asset ID to access
$satId = 56; // Integer | SAT ID to access asset through
$argsOwnerSignature = argsOwnerSignature_example; // String | Owner's signature

try {
    $result = $api_instance->getSatAccessTiсket($ownerId, $accessType, $ownerPublicKey, $assetId, $satId, $argsOwnerSignature);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TicketsApi->getSatAccessTiсket: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TicketsApi;

my $api_instance = WWW::SwaggerClient::TicketsApi->new();
my $ownerId = ; # AddressString | User ID of a SAT owner
my $accessType = ; # AccessTypes | Only 'SAT' for now is allowed
my $ownerPublicKey = ownerPublicKey_example; # String | Owner public key
my $assetId = 56; # Integer | Asset ID to access
my $satId = 56; # Integer | SAT ID to access asset through
my $argsOwnerSignature = argsOwnerSignature_example; # String | Owner's signature

eval { 
    my $result = $api_instance->getSatAccessTiсket(ownerId => $ownerId, accessType => $accessType, ownerPublicKey => $ownerPublicKey, assetId => $assetId, satId => $satId, argsOwnerSignature => $argsOwnerSignature);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TicketsApi->getSatAccessTiсket: $@\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.TicketsApi()
ownerId =  # AddressString | User ID of a SAT owner
accessType =  # AccessTypes | Only 'SAT' for now is allowed
ownerPublicKey = ownerPublicKey_example # String | Owner public key
assetId = 56 # Integer | Asset ID to access
satId = 56 # Integer | SAT ID to access asset through
argsOwnerSignature = argsOwnerSignature_example # String | Owner's signature

try: 
    # Get SAT access ticket
    api_response = api_instance.get_sat_access_tiсket(ownerId, accessType, ownerPublicKey, assetId, satId, argsOwnerSignature)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TicketsApi->getSatAccessTiсket: %s\n" % e)

Parameters

Query parameters
Name Description
ownerId*
AddressString
User ID of a SAT owner
Required
accessType*
AccessTypes
Only 'SAT' for now is allowed
Required
ownerPublicKey*
String
Owner public key
Required
assetId*
Integer
Asset ID to access
Required
satId*
Integer
SAT ID to access asset through
Required
argsOwnerSignature*
String
Owner's signature
Required

Responses

Status: 200 - Get SAT access ticket


getTagAccessTiсket

Get tag access ticket

Get tag access ticket


/assets/access/tag

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://34.69.151.182:8080/api/assets/access/tag?buyerId=&bulkSellerId=&accessType=&buyerPublicKey=&assetId=&tagId=&argsBuyerSignature="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TicketsApi;

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

public class TicketsApiExample {

    public static void main(String[] args) {
        
        TicketsApi apiInstance = new TicketsApi();
        AddressString buyerId = ; // AddressString | User ID of a buyer
        AddressString bulkSellerId = ; // AddressString | User ID of a BULK seller)
        AccessTypes accessType = ; // AccessTypes | Only 'BULK' for now is allowed
        String buyerPublicKey = buyerPublicKey_example; // String | Buyer public key
        array[Integer] assetId = ; // array[Integer] | Asset ID to access
        Integer tagId = 56; // Integer | Tag ID to access asset through
        String argsBuyerSignature = argsBuyerSignature_example; // String | Buyer's signature
        try {
            inline_response_200_1 result = apiInstance.getTagAccessTiсket(buyerId, bulkSellerId, accessType, buyerPublicKey, assetId, tagId, argsBuyerSignature);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TicketsApi#getTagAccessTiсket");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TicketsApi;

public class TicketsApiExample {

    public static void main(String[] args) {
        TicketsApi apiInstance = new TicketsApi();
        AddressString buyerId = ; // AddressString | User ID of a buyer
        AddressString bulkSellerId = ; // AddressString | User ID of a BULK seller)
        AccessTypes accessType = ; // AccessTypes | Only 'BULK' for now is allowed
        String buyerPublicKey = buyerPublicKey_example; // String | Buyer public key
        array[Integer] assetId = ; // array[Integer] | Asset ID to access
        Integer tagId = 56; // Integer | Tag ID to access asset through
        String argsBuyerSignature = argsBuyerSignature_example; // String | Buyer's signature
        try {
            inline_response_200_1 result = apiInstance.getTagAccessTiсket(buyerId, bulkSellerId, accessType, buyerPublicKey, assetId, tagId, argsBuyerSignature);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TicketsApi#getTagAccessTiсket");
            e.printStackTrace();
        }
    }
}
AddressString *buyerId = ; // User ID of a buyer
AddressString *bulkSellerId = ; // User ID of a BULK seller)
AccessTypes *accessType = ; // Only 'BULK' for now is allowed
String *buyerPublicKey = buyerPublicKey_example; // Buyer public key
array[Integer] *assetId = ; // Asset ID to access
Integer *tagId = 56; // Tag ID to access asset through
String *argsBuyerSignature = argsBuyerSignature_example; // Buyer's signature

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

// Get tag access ticket
[apiInstance getTagAccessTiсketWith:buyerId
    bulkSellerId:bulkSellerId
    accessType:accessType
    buyerPublicKey:buyerPublicKey
    assetId:assetId
    tagId:tagId
    argsBuyerSignature:argsBuyerSignature
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

var api = new ThePersonalDigitalSpacesApi.TicketsApi()
var buyerId = ; // {{AddressString}} User ID of a buyer
var bulkSellerId = ; // {{AddressString}} User ID of a BULK seller)
var accessType = ; // {{AccessTypes}} Only 'BULK' for now is allowed
var buyerPublicKey = buyerPublicKey_example; // {{String}} Buyer public key
var assetId = ; // {{array[Integer]}} Asset ID to access
var tagId = 56; // {{Integer}} Tag ID to access asset through
var argsBuyerSignature = argsBuyerSignature_example; // {{String}} Buyer's signature

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTagAccessTiсket(buyerId, bulkSellerId, accessType, buyerPublicKey, assetId, tagId, argsBuyerSignature, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTagAccessTiсketExample
    {
        public void main()
        {

            var apiInstance = new TicketsApi();
            var buyerId = new AddressString(); // AddressString | User ID of a buyer
            var bulkSellerId = new AddressString(); // AddressString | User ID of a BULK seller)
            var accessType = new AccessTypes(); // AccessTypes | Only 'BULK' for now is allowed
            var buyerPublicKey = buyerPublicKey_example;  // String | Buyer public key
            var assetId = new array[Integer](); // array[Integer] | Asset ID to access
            var tagId = 56;  // Integer | Tag ID to access asset through
            var argsBuyerSignature = argsBuyerSignature_example;  // String | Buyer's signature

            try
            {
                // Get tag access ticket
                inline_response_200_1 result = apiInstance.getTagAccessTiсket(buyerId, bulkSellerId, accessType, buyerPublicKey, assetId, tagId, argsBuyerSignature);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TicketsApi.getTagAccessTiсket: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTicketsApi();
$buyerId = ; // AddressString | User ID of a buyer
$bulkSellerId = ; // AddressString | User ID of a BULK seller)
$accessType = ; // AccessTypes | Only 'BULK' for now is allowed
$buyerPublicKey = buyerPublicKey_example; // String | Buyer public key
$assetId = ; // array[Integer] | Asset ID to access
$tagId = 56; // Integer | Tag ID to access asset through
$argsBuyerSignature = argsBuyerSignature_example; // String | Buyer's signature

try {
    $result = $api_instance->getTagAccessTiсket($buyerId, $bulkSellerId, $accessType, $buyerPublicKey, $assetId, $tagId, $argsBuyerSignature);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TicketsApi->getTagAccessTiсket: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TicketsApi;

my $api_instance = WWW::SwaggerClient::TicketsApi->new();
my $buyerId = ; # AddressString | User ID of a buyer
my $bulkSellerId = ; # AddressString | User ID of a BULK seller)
my $accessType = ; # AccessTypes | Only 'BULK' for now is allowed
my $buyerPublicKey = buyerPublicKey_example; # String | Buyer public key
my $assetId = []; # array[Integer] | Asset ID to access
my $tagId = 56; # Integer | Tag ID to access asset through
my $argsBuyerSignature = argsBuyerSignature_example; # String | Buyer's signature

eval { 
    my $result = $api_instance->getTagAccessTiсket(buyerId => $buyerId, bulkSellerId => $bulkSellerId, accessType => $accessType, buyerPublicKey => $buyerPublicKey, assetId => $assetId, tagId => $tagId, argsBuyerSignature => $argsBuyerSignature);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TicketsApi->getTagAccessTiсket: $@\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.TicketsApi()
buyerId =  # AddressString | User ID of a buyer
bulkSellerId =  # AddressString | User ID of a BULK seller)
accessType =  # AccessTypes | Only 'BULK' for now is allowed
buyerPublicKey = buyerPublicKey_example # String | Buyer public key
assetId =  # array[Integer] | Asset ID to access
tagId = 56 # Integer | Tag ID to access asset through
argsBuyerSignature = argsBuyerSignature_example # String | Buyer's signature

try: 
    # Get tag access ticket
    api_response = api_instance.get_tag_access_tiсket(buyerId, bulkSellerId, accessType, buyerPublicKey, assetId, tagId, argsBuyerSignature)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TicketsApi->getTagAccessTiсket: %s\n" % e)

Parameters

Query parameters
Name Description
buyerId*
AddressString
User ID of a buyer
Required
bulkSellerId*
AddressString
User ID of a BULK seller)
Required
accessType*
AccessTypes
Only 'BULK' for now is allowed
Required
buyerPublicKey*
String
Buyer public key
Required
assetId*
array[Integer]
Asset ID to access
Required
tagId*
Integer
Tag ID to access asset through
Required
argsBuyerSignature*
String
Buyer's signature
Required

Responses

Status: 200 - Get tag access ticket


incrementFileAccessTicketCounter

Increment file access ticket counter

Increment ticket counter


/assets/access/file

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://34.69.151.182:8080/api/assets/access/file"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TicketsApi;

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

public class TicketsApiExample {

    public static void main(String[] args) {
        
        TicketsApi apiInstance = new TicketsApi();
        Access_file_body body = ; // Access_file_body | 
        try {
            inline_response_200_2 result = apiInstance.incrementFileAccessTicketCounter(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TicketsApi#incrementFileAccessTicketCounter");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TicketsApi;

public class TicketsApiExample {

    public static void main(String[] args) {
        TicketsApi apiInstance = new TicketsApi();
        Access_file_body body = ; // Access_file_body | 
        try {
            inline_response_200_2 result = apiInstance.incrementFileAccessTicketCounter(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TicketsApi#incrementFileAccessTicketCounter");
            e.printStackTrace();
        }
    }
}
Access_file_body *body = ; //  (optional)

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

// Increment file access ticket counter
[apiInstance incrementFileAccessTicketCounterWith:body
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

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

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

            var apiInstance = new TicketsApi();
            var body = new Access_file_body(); // Access_file_body |  (optional) 

            try
            {
                // Increment file access ticket counter
                inline_response_200_2 result = apiInstance.incrementFileAccessTicketCounter(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TicketsApi.incrementFileAccessTicketCounter: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTicketsApi();
$body = ; // Access_file_body | 

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

my $api_instance = WWW::SwaggerClient::TicketsApi->new();
my $body = WWW::SwaggerClient::Object::Access_file_body->new(); # Access_file_body | 

eval { 
    my $result = $api_instance->incrementFileAccessTicketCounter(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TicketsApi->incrementFileAccessTicketCounter: $@\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.TicketsApi()
body =  # Access_file_body |  (optional)

try: 
    # Increment file access ticket counter
    api_response = api_instance.increment_file_access_ticket_counter(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TicketsApi->incrementFileAccessTicketCounter: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - The updated number of times the licenses has been used to access an asset.


incrementTagAccessTicketCounter

Increment tag access ticket counter

The method acts as an audit enabler by recording license usage on-chain. This method does not need to be called when it is regarding an ownership license.


/assets/access/tag

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://34.69.151.182:8080/api/assets/access/tag"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TicketsApi;

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

public class TicketsApiExample {

    public static void main(String[] args) {
        
        TicketsApi apiInstance = new TicketsApi();
        Access_tag_body body = ; // Access_tag_body | 
        try {
            inline_response_200_3 result = apiInstance.incrementTagAccessTicketCounter(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TicketsApi#incrementTagAccessTicketCounter");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TicketsApi;

public class TicketsApiExample {

    public static void main(String[] args) {
        TicketsApi apiInstance = new TicketsApi();
        Access_tag_body body = ; // Access_tag_body | 
        try {
            inline_response_200_3 result = apiInstance.incrementTagAccessTicketCounter(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TicketsApi#incrementTagAccessTicketCounter");
            e.printStackTrace();
        }
    }
}
Access_tag_body *body = ; //  (optional)

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

// Increment tag access ticket counter
[apiInstance incrementTagAccessTicketCounterWith:body
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

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

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

            var apiInstance = new TicketsApi();
            var body = new Access_tag_body(); // Access_tag_body |  (optional) 

            try
            {
                // Increment tag access ticket counter
                inline_response_200_3 result = apiInstance.incrementTagAccessTicketCounter(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TicketsApi.incrementTagAccessTicketCounter: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTicketsApi();
$body = ; // Access_tag_body | 

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

my $api_instance = WWW::SwaggerClient::TicketsApi->new();
my $body = WWW::SwaggerClient::Object::Access_tag_body->new(); # Access_tag_body | 

eval { 
    my $result = $api_instance->incrementTagAccessTicketCounter(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TicketsApi->incrementTagAccessTicketCounter: $@\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.TicketsApi()
body =  # Access_tag_body |  (optional)

try: 
    # Increment tag access ticket counter
    api_response = api_instance.increment_tag_access_ticket_counter(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TicketsApi->incrementTagAccessTicketCounter: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - The updated number of times the licenses has been used to access an asset.


Vaults

getRegisteredProxyVaults

Get registered proxy vaults

Get registered proxy vaults


/system/register/proxy

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://34.69.151.182:8080/api/system/register/proxy?ownerId=&vaultId=&assetId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VaultsApi;

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

public class VaultsApiExample {

    public static void main(String[] args) {
        
        VaultsApi apiInstance = new VaultsApi();
        AddressString ownerId = ; // AddressString | User ID of a vault's owner
        Integer vaultId = 56; // Integer | Vault ID
        Integer assetId = 56; // Integer | Asset ID to get vault of
        try {
            array[inline_response_200_9] result = apiInstance.getRegisteredProxyVaults(ownerId, vaultId, assetId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VaultsApi#getRegisteredProxyVaults");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VaultsApi;

public class VaultsApiExample {

    public static void main(String[] args) {
        VaultsApi apiInstance = new VaultsApi();
        AddressString ownerId = ; // AddressString | User ID of a vault's owner
        Integer vaultId = 56; // Integer | Vault ID
        Integer assetId = 56; // Integer | Asset ID to get vault of
        try {
            array[inline_response_200_9] result = apiInstance.getRegisteredProxyVaults(ownerId, vaultId, assetId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VaultsApi#getRegisteredProxyVaults");
            e.printStackTrace();
        }
    }
}
AddressString *ownerId = ; // User ID of a vault's owner (optional)
Integer *vaultId = 56; // Vault ID (optional)
Integer *assetId = 56; // Asset ID to get vault of (optional)

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

// Get registered proxy vaults
[apiInstance getRegisteredProxyVaultsWith:ownerId
    vaultId:vaultId
    assetId:assetId
              completionHandler: ^(array[inline_response_200_9] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

var api = new ThePersonalDigitalSpacesApi.VaultsApi()
var opts = { 
  'ownerId': , // {{AddressString}} User ID of a vault's owner
  'vaultId': 56, // {{Integer}} Vault ID
  'assetId': 56 // {{Integer}} Asset ID to get vault of
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getRegisteredProxyVaults(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new VaultsApi();
            var ownerId = new AddressString(); // AddressString | User ID of a vault's owner (optional) 
            var vaultId = 56;  // Integer | Vault ID (optional) 
            var assetId = 56;  // Integer | Asset ID to get vault of (optional) 

            try
            {
                // Get registered proxy vaults
                array[inline_response_200_9] result = apiInstance.getRegisteredProxyVaults(ownerId, vaultId, assetId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VaultsApi.getRegisteredProxyVaults: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiVaultsApi();
$ownerId = ; // AddressString | User ID of a vault's owner
$vaultId = 56; // Integer | Vault ID
$assetId = 56; // Integer | Asset ID to get vault of

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

my $api_instance = WWW::SwaggerClient::VaultsApi->new();
my $ownerId = ; # AddressString | User ID of a vault's owner
my $vaultId = 56; # Integer | Vault ID
my $assetId = 56; # Integer | Asset ID to get vault of

eval { 
    my $result = $api_instance->getRegisteredProxyVaults(ownerId => $ownerId, vaultId => $vaultId, assetId => $assetId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VaultsApi->getRegisteredProxyVaults: $@\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.VaultsApi()
ownerId =  # AddressString | User ID of a vault's owner (optional)
vaultId = 56 # Integer | Vault ID (optional)
assetId = 56 # Integer | Asset ID to get vault of (optional)

try: 
    # Get registered proxy vaults
    api_response = api_instance.get_registered_proxy_vaults(ownerId=ownerId, vaultId=vaultId, assetId=assetId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VaultsApi->getRegisteredProxyVaults: %s\n" % e)

Parameters

Query parameters
Name Description
ownerId
AddressString
User ID of a vault's owner
vaultId
Integer
Vault ID
assetId
Integer
Asset ID to get vault of

Responses

Status: 200 - Get registered proxy vaults


registerProxyVault

Register proxy vault

The method acts as an audit enabler by recording license usage on-chain. This method does not need to be called when it is regarding an ownership license. Please note that for access ticket, the asset ID should be used, but for bulk access tickets, the `tagId` should be used. > Using this call will charge the calling account 1 Żetons (1,000,000 Leos) for utilizing computational resources. Errors will be thrown if this balance is not held by request sender account.


/system/register/proxy

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://34.69.151.182:8080/api/system/register/proxy"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VaultsApi;

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

public class VaultsApiExample {

    public static void main(String[] args) {
        
        VaultsApi apiInstance = new VaultsApi();
        Register_proxy_body body = ; // Register_proxy_body | 
        try {
            'Integer' result = apiInstance.registerProxyVault(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VaultsApi#registerProxyVault");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VaultsApi;

public class VaultsApiExample {

    public static void main(String[] args) {
        VaultsApi apiInstance = new VaultsApi();
        Register_proxy_body body = ; // Register_proxy_body | 
        try {
            'Integer' result = apiInstance.registerProxyVault(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VaultsApi#registerProxyVault");
            e.printStackTrace();
        }
    }
}
Register_proxy_body *body = ; //  (optional)

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

// Register proxy vault
[apiInstance registerProxyVaultWith:body
              completionHandler: ^('Integer' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ThePersonalDigitalSpacesApi = require('the_personal_digital_spaces_api');

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

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

            var apiInstance = new VaultsApi();
            var body = new Register_proxy_body(); // Register_proxy_body |  (optional) 

            try
            {
                // Register proxy vault
                'Integer' result = apiInstance.registerProxyVault(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VaultsApi.registerProxyVault: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiVaultsApi();
$body = ; // Register_proxy_body | 

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

my $api_instance = WWW::SwaggerClient::VaultsApi->new();
my $body = WWW::SwaggerClient::Object::Register_proxy_body->new(); # Register_proxy_body | 

eval { 
    my $result = $api_instance->registerProxyVault(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VaultsApi->registerProxyVault: $@\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.VaultsApi()
body =  # Register_proxy_body |  (optional)

try: 
    # Register proxy vault
    api_response = api_instance.register_proxy_vault(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VaultsApi->registerProxyVault: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - Returns Vault ID