allAssets
List all assets
Get all assets that we support
/assets
Usage and SDK Samples
curl -X GET "https://api.apieco.ir/block-facts/api/v1/assets"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetApi;
import java.io.File;
import java.util.*;
public class AssetApiExample {
public static void main(String[] args) {
AssetApi apiInstance = new AssetApi();
String apiecoKey = apiecoKey_example; // String |
try {
array[inline_response_200] result = apiInstance.allAssets(apiecoKey);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AssetApi#allAssets");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AssetApi;
public class AssetApiExample {
public static void main(String[] args) {
AssetApi apiInstance = new AssetApi();
String apiecoKey = apiecoKey_example; // String |
try {
array[inline_response_200] result = apiInstance.allAssets(apiecoKey);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AssetApi#allAssets");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; //
AssetApi *apiInstance = [[AssetApi alloc] init];
// List all assets
[apiInstance allAssetsWith:apiecoKey
completionHandler: ^(array[inline_response_200] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var BlockFactsApi = require('block_facts_api');
var api = new BlockFactsApi.AssetApi()
var apiecoKey = apiecoKey_example; // {String}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.allAssets(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class allAssetsExample
{
public void main()
{
var apiInstance = new AssetApi();
var apiecoKey = apiecoKey_example; // String |
try
{
// List all assets
array[inline_response_200] result = apiInstance.allAssets(apiecoKey);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AssetApi.allAssets: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\AssetApi();
$apiecoKey = apiecoKey_example; // String |
try {
$result = $api_instance->allAssets($apiecoKey);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AssetApi->allAssets: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetApi;
my $api_instance = WWW::SwaggerClient::AssetApi->new();
my $apiecoKey = apiecoKey_example; # String |
eval {
my $result = $api_instance->allAssets(apiecoKey => $apiecoKey);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AssetApi->allAssets: $@\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.AssetApi()
apiecoKey = apiecoKey_example # String |
try:
# List all assets
api_response = api_instance.all_assets(apiecoKey)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->allAssets: %s\n" % e)
Parameters
Name | Description |
---|---|
apieco-key* |
String
Required
|