NFT Unlockable Content GoLang rest API

Varda Vault Gaming API

checkHealth


/healthz

Usage and SDK Samples

curl -X GET "http://localhost/healthz"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

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

public class DefaultApiExample {

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

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

[apiInstance checkHealthWithCompletionHandler: 
              ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GoRestApi = require('go_rest_api');

var api = new GoRestApi.DefaultApi()

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

namespace Example
{
    public class checkHealthExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                'String' result = apiInstance.checkHealth();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.checkHealth: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();

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

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

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

try: 
    api_response = api_instance.check_health()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->checkHealth: %s\n" % e)

Parameters

Responses

Status: 200 - OK message.


getOwnedByUser

Returns owned tokens on Mintbase


https://filecoin-dlubh5ly6a-uc.a.run.app/owned/{user}

Usage and SDK Samples

curl -X GET "https://filecoin-dlubh5ly6a-uc.a.run.app/owned/{user}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String user = user_example; // String | The near wallet to check for ownerships
        try {
            Object result = apiInstance.getOwnedByUser(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getOwnedByUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String user = user_example; // String | The near wallet to check for ownerships
        try {
            Object result = apiInstance.getOwnedByUser(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getOwnedByUser");
            e.printStackTrace();
        }
    }
}
String *user = user_example; // The near wallet to check for ownerships

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

[apiInstance getOwnedByUserWith:user
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GoRestApi = require('go_rest_api');

var api = new GoRestApi.DefaultApi()

var user = user_example; // {String} The near wallet to check for ownerships


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

namespace Example
{
    public class getOwnedByUserExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var user = user_example;  // String | The near wallet to check for ownerships

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

$api_instance = new Swagger\Client\Api\DefaultApi();
$user = user_example; // String | The near wallet to check for ownerships

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $user = user_example; # String | The near wallet to check for ownerships

eval { 
    my $result = $api_instance->getOwnedByUser(user => $user);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getOwnedByUser: $@\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.DefaultApi()
user = user_example # String | The near wallet to check for ownerships

try: 
    api_response = api_instance.get_owned_by_user(user)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getOwnedByUser: %s\n" % e)

Parameters

Path parameters
Name Description
user*
String
The near wallet to check for ownerships
Required

Responses

Status: 200 - Returns the tokenIds, media and titles.

Status: 400 - Invalid characters in "user" were provided.


getOwnedFiltered

Returns owned tokens on Mintbase filtered by store ID


https://filecoin-dlubh5ly6a-uc.a.run.app/owned/{user}/{store}

Usage and SDK Samples

curl -X GET "https://filecoin-dlubh5ly6a-uc.a.run.app/owned/{user}/{store}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String user = user_example; // String | The near wallet to check for ownerships
        String store = store_example; // String | 
        try {
            Object result = apiInstance.getOwnedFiltered(user, store);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getOwnedFiltered");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String user = user_example; // String | The near wallet to check for ownerships
        String store = store_example; // String | 
        try {
            Object result = apiInstance.getOwnedFiltered(user, store);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getOwnedFiltered");
            e.printStackTrace();
        }
    }
}
String *user = user_example; // The near wallet to check for ownerships
String *store = store_example; // 

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

[apiInstance getOwnedFilteredWith:user
    store:store
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GoRestApi = require('go_rest_api');

var api = new GoRestApi.DefaultApi()

var user = user_example; // {String} The near wallet to check for ownerships

var store = store_example; // {String} 


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

namespace Example
{
    public class getOwnedFilteredExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var user = user_example;  // String | The near wallet to check for ownerships
            var store = store_example;  // String | 

            try
            {
                Object result = apiInstance.getOwnedFiltered(user, store);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getOwnedFiltered: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$user = user_example; // String | The near wallet to check for ownerships
$store = store_example; // String | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $user = user_example; # String | The near wallet to check for ownerships
my $store = store_example; # String | 

eval { 
    my $result = $api_instance->getOwnedFiltered(user => $user, store => $store);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getOwnedFiltered: $@\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.DefaultApi()
user = user_example # String | The near wallet to check for ownerships
store = store_example # String | 

try: 
    api_response = api_instance.get_owned_filtered(user, store)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getOwnedFiltered: %s\n" % e)

Parameters

Path parameters
Name Description
user*
String
The near wallet to check for ownerships
Required
store*
String
Required

Responses

Status: 200 - Returns the tokenIds, media and titles filtered by the store ID.

Status: 400 - Invalid characters in "user" were provided.


getOwners

Return the owners of a Mintbase NFT, get the TokenId on the Varda Vault.


https://filecoin-dlubh5ly6a-uc.a.run.app/owners/{tokenid}

Usage and SDK Samples

curl -X GET "https://filecoin-dlubh5ly6a-uc.a.run.app/owners/{tokenid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String tokenid = tokenid_example; // String | The Id of the NFT to check for owners
        try {
            Object result = apiInstance.getOwners(tokenid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getOwners");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String tokenid = tokenid_example; // String | The Id of the NFT to check for owners
        try {
            Object result = apiInstance.getOwners(tokenid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getOwners");
            e.printStackTrace();
        }
    }
}
String *tokenid = tokenid_example; // The Id of the NFT to check for owners

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

[apiInstance getOwnersWith:tokenid
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GoRestApi = require('go_rest_api');

var api = new GoRestApi.DefaultApi()

var tokenid = tokenid_example; // {String} The Id of the NFT to check for owners


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

namespace Example
{
    public class getOwnersExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var tokenid = tokenid_example;  // String | The Id of the NFT to check for owners

            try
            {
                Object result = apiInstance.getOwners(tokenid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getOwners: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$tokenid = tokenid_example; // String | The Id of the NFT to check for owners

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $tokenid = tokenid_example; # String | The Id of the NFT to check for owners

eval { 
    my $result = $api_instance->getOwners(tokenid => $tokenid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getOwners: $@\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.DefaultApi()
tokenid = tokenid_example # String | The Id of the NFT to check for owners

try: 
    api_response = api_instance.get_owners(tokenid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getOwners: %s\n" % e)

Parameters

Path parameters
Name Description
tokenid*
String
The Id of the NFT to check for owners
Required

Responses

Status: 200 - Returns the owners of the given tokenid.


getParasOwnedByUser

Returns owned tokens on Paras


https://filecoin-dlubh5ly6a-uc.a.run.app/owned-paras/{user}

Usage and SDK Samples

curl -X GET "https://filecoin-dlubh5ly6a-uc.a.run.app/owned-paras/{user}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String user = user_example; // String | The near wallet to check for ownerships
        try {
            Object result = apiInstance.getParasOwnedByUser(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getParasOwnedByUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String user = user_example; // String | The near wallet to check for ownerships
        try {
            Object result = apiInstance.getParasOwnedByUser(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getParasOwnedByUser");
            e.printStackTrace();
        }
    }
}
String *user = user_example; // The near wallet to check for ownerships

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

[apiInstance getParasOwnedByUserWith:user
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GoRestApi = require('go_rest_api');

var api = new GoRestApi.DefaultApi()

var user = user_example; // {String} The near wallet to check for ownerships


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

namespace Example
{
    public class getParasOwnedByUserExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var user = user_example;  // String | The near wallet to check for ownerships

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

$api_instance = new Swagger\Client\Api\DefaultApi();
$user = user_example; // String | The near wallet to check for ownerships

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $user = user_example; # String | The near wallet to check for ownerships

eval { 
    my $result = $api_instance->getParasOwnedByUser(user => $user);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getParasOwnedByUser: $@\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.DefaultApi()
user = user_example # String | The near wallet to check for ownerships

try: 
    api_response = api_instance.get_paras_owned_by_user(user)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getParasOwnedByUser: %s\n" % e)

Parameters

Path parameters
Name Description
user*
String
The near wallet to check for ownerships
Required

Responses

Status: 200 - Returns the tokenIds, media and titles.

Status: 400 - Invalid characters in "user" were provided.


getParasOwners

Return the owners of a Paras NFT, get the TokenId on the Varda Vault.


https://filecoin-dlubh5ly6a-uc.a.run.app/owners-paras/{tokenid}

Usage and SDK Samples

curl -X GET "https://filecoin-dlubh5ly6a-uc.a.run.app/owners-paras/{tokenid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String tokenid = tokenid_example; // String | The Id of the NFT to check for owners (check on the Varda Vault)
        try {
            Object result = apiInstance.getParasOwners(tokenid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getParasOwners");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String tokenid = tokenid_example; // String | The Id of the NFT to check for owners (check on the Varda Vault)
        try {
            Object result = apiInstance.getParasOwners(tokenid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getParasOwners");
            e.printStackTrace();
        }
    }
}
String *tokenid = tokenid_example; // The Id of the NFT to check for owners (check on the Varda Vault)

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

[apiInstance getParasOwnersWith:tokenid
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GoRestApi = require('go_rest_api');

var api = new GoRestApi.DefaultApi()

var tokenid = tokenid_example; // {String} The Id of the NFT to check for owners (check the Varda Vault)


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

namespace Example
{
    public class getParasOwnersExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var tokenid = tokenid_example;  // String | The Id of the NFT to check for owners (check on the Varda Vault)

            try
            {
                Object result = apiInstance.getParasOwners(tokenid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getParasOwners: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$tokenid = tokenid_example; // String | The Id of the NFT to check for owners (check on the Varda Vault)

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $tokenid = tokenid_example; # String | The Id of the NFT to check for owners (check on the Varda Vault)

eval { 
    my $result = $api_instance->getParasOwners(tokenid => $tokenid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getParasOwners: $@\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.DefaultApi()
tokenid = tokenid_example # String | The Id of the NFT to check for owners (check on the Varda Vault)

try: 
    api_response = api_instance.get_paras_owners(tokenid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getParasOwners: %s\n" % e)

Parameters

Path parameters
Name Description
tokenid*
String
The Id of the NFT to check for owners, check the right tokenId on the Varda Vault
Required

Responses

Status: 200 - Returns the owners of the given tokenid (check the tokenId on the Varda Vault).


getUnlockables

Returns unlockable content for NFT tokenid, retrieve the tokenid in the Varda Vault after locking the content.


https://filecoin-dlubh5ly6a-uc.a.run.app/unlockables/{tokenid}

Usage and SDK Samples

curl -X GET "https://filecoin-dlubh5ly6a-uc.a.run.app/unlockables/{tokenid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String tokenId = token_example // String | the token id for your Nft, check the Varda Vault to get it
        try {
            Object result = apiInstance.getUnlockables(tokenid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getUnlockables");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String tokenId = token_example // String | the token id for your NFT, check the Varda Vault to get it
        try {
            Object result = apiInstance.getUnlockables(tokenid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getUnlockables");
            e.printStackTrace();
        }
    }
}
String *tokenId = token_example // String | the token id for your Nft, check the Varda Vault to get it

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

[apiInstance getUnlockablesWith:tokenid
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GoRestApi = require('go_rest_api');

var api = new GoRestApi.DefaultApi()

var tokenId = token_example // String | the token id for your NFT, check the Varda Vault to get it


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

namespace Example
{
    public class getUnlockablesExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var tokenId = token_example // String | the token id for your NFT, check the Varda Vault to get it

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

$api_instance = new Swagger\Client\Api\DefaultApi();
$tokenId = token_example // String | the token id for your NFT, check the Varda Vault to get it

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $tokenId = token_example # String | the token id for your Nft, check the Varda Vault to get it

eval { 
    my $result = $api_instance->getUnlockables(tokenid => $tokenid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getUnlockables: $@\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.DefaultApi()
tokenId = token_example # String | the token id for your Nft, check the Varda Vault to get it

try: 
    api_response = api_instance.get_unlockables(tokenid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getUnlockables: %s\n" % e)

Parameters

Path parameters
Name Description
tokenid*
String
The tokenId of the Owned NFT to unlock files, check On the Varda Vault what's your tokenID.
Required

Responses

Status: 200 - Returns the CID or link for unlockable files.

Status: 400 - Invalid characters in "tokenid" were provided.