Heroes of Umbra API

Items

listItems

List all items


/items

Usage and SDK Samples

curl -X GET "http://api.heroesofumbra.com/v1/items?limit="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ItemsApi;

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

public class ItemsApiExample {

    public static void main(String[] args) {
        
        ItemsApi apiInstance = new ItemsApi();
        Integer limit = 56; // Integer | How many items to return at one time (max 1000)
        try {
            Items result = apiInstance.listItems(limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ItemsApi#listItems");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ItemsApi;

public class ItemsApiExample {

    public static void main(String[] args) {
        ItemsApi apiInstance = new ItemsApi();
        Integer limit = 56; // Integer | How many items to return at one time (max 1000)
        try {
            Items result = apiInstance.listItems(limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ItemsApi#listItems");
            e.printStackTrace();
        }
    }
}
Integer *limit = 56; // How many items to return at one time (max 1000) (optional)

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

// List all items
[apiInstance listItemsWith:limit
              completionHandler: ^(Items output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HeroesOfUmbraApi = require('heroes_of_umbra_api');

var api = new HeroesOfUmbraApi.ItemsApi()
var opts = { 
  'limit': 56 // {{Integer}} How many items to return at one time (max 1000)
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listItems(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new ItemsApi();
            var limit = 56;  // Integer | How many items to return at one time (max 1000) (optional) 

            try
            {
                // List all items
                Items result = apiInstance.listItems(limit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ItemsApi.listItems: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiItemsApi();
$limit = 56; // Integer | How many items to return at one time (max 1000)

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

my $api_instance = WWW::SwaggerClient::ItemsApi->new();
my $limit = 56; # Integer | How many items to return at one time (max 1000)

eval { 
    my $result = $api_instance->listItems(limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ItemsApi->listItems: $@\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.ItemsApi()
limit = 56 # Integer | How many items to return at one time (max 1000) (optional)

try: 
    # List all items
    api_response = api_instance.list_items(limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ItemsApi->listItems: %s\n" % e)

Parameters

Query parameters
Name Description
limit
Integer (int32)
How many items to return at one time (max 1000)

Responses

Status: 200 - A paged array of items

Name Type Format Description
x-next String

Status: default - unexpected error


showItemById

Info for a specific item


/items/{id}

Usage and SDK Samples

curl -X GET "http://api.heroesofumbra.com/v1/items/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ItemsApi;

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

public class ItemsApiExample {

    public static void main(String[] args) {
        
        ItemsApi apiInstance = new ItemsApi();
        String id = id_example; // String | The id of the item to retrieve
        try {
            Item result = apiInstance.showItemById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ItemsApi#showItemById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ItemsApi;

public class ItemsApiExample {

    public static void main(String[] args) {
        ItemsApi apiInstance = new ItemsApi();
        String id = id_example; // String | The id of the item to retrieve
        try {
            Item result = apiInstance.showItemById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ItemsApi#showItemById");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // The id of the item to retrieve

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

// Info for a specific item
[apiInstance showItemByIdWith:id
              completionHandler: ^(Item output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HeroesOfUmbraApi = require('heroes_of_umbra_api');

var api = new HeroesOfUmbraApi.ItemsApi()
var id = id_example; // {{String}} The id of the item to retrieve

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

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

            var apiInstance = new ItemsApi();
            var id = id_example;  // String | The id of the item to retrieve

            try
            {
                // Info for a specific item
                Item result = apiInstance.showItemById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ItemsApi.showItemById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiItemsApi();
$id = id_example; // String | The id of the item to retrieve

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

my $api_instance = WWW::SwaggerClient::ItemsApi->new();
my $id = id_example; # String | The id of the item to retrieve

eval { 
    my $result = $api_instance->showItemById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ItemsApi->showItemById: $@\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.ItemsApi()
id = id_example # String | The id of the item to retrieve

try: 
    # Info for a specific item
    api_response = api_instance.show_item_by_id(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ItemsApi->showItemById: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
The id of the item to retrieve
Required

Responses

Status: 200 - Expected response to a valid request

Status: default - unexpected error


Skills

listSkills

List all skills


/skills

Usage and SDK Samples

curl -X GET "http://api.heroesofumbra.com/v1/skills"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SkillsApi;

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

public class SkillsApiExample {

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

public class SkillsApiExample {

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

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

// List all skills
[apiInstance listSkillsWithCompletionHandler: 
              ^(Skills output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HeroesOfUmbraApi = require('heroes_of_umbra_api');

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

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

            var apiInstance = new SkillsApi();

            try
            {
                // List all skills
                Skills result = apiInstance.listSkills();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SkillsApi.listSkills: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

try: 
    # List all skills
    api_response = api_instance.list_skills()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SkillsApi->listSkills: %s\n" % e)

Parameters

Responses

Status: 200 - All skills

Status: default - unexpected error


showSkillById

Info for a specific skill


/skills/{id}

Usage and SDK Samples

curl -X GET "http://api.heroesofumbra.com/v1/skills/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SkillsApi;

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

public class SkillsApiExample {

    public static void main(String[] args) {
        
        SkillsApi apiInstance = new SkillsApi();
        String id = id_example; // String | The id of the skill to retrieve
        try {
            Skill result = apiInstance.showSkillById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SkillsApi#showSkillById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SkillsApi;

public class SkillsApiExample {

    public static void main(String[] args) {
        SkillsApi apiInstance = new SkillsApi();
        String id = id_example; // String | The id of the skill to retrieve
        try {
            Skill result = apiInstance.showSkillById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SkillsApi#showSkillById");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // The id of the skill to retrieve

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

// Info for a specific skill
[apiInstance showSkillByIdWith:id
              completionHandler: ^(Skill output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HeroesOfUmbraApi = require('heroes_of_umbra_api');

var api = new HeroesOfUmbraApi.SkillsApi()
var id = id_example; // {{String}} The id of the skill to retrieve

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

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

            var apiInstance = new SkillsApi();
            var id = id_example;  // String | The id of the skill to retrieve

            try
            {
                // Info for a specific skill
                Skill result = apiInstance.showSkillById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SkillsApi.showSkillById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSkillsApi();
$id = id_example; // String | The id of the skill to retrieve

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

my $api_instance = WWW::SwaggerClient::SkillsApi->new();
my $id = id_example; # String | The id of the skill to retrieve

eval { 
    my $result = $api_instance->showSkillById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SkillsApi->showSkillById: $@\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.SkillsApi()
id = id_example # String | The id of the skill to retrieve

try: 
    # Info for a specific skill
    api_response = api_instance.show_skill_by_id(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SkillsApi->showSkillById: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
The id of the skill to retrieve
Required

Responses

Status: 200 - Expected response to a valid request

Status: default - unexpected error