Hearth Stone

AllCards

getAllcards

Returns all available Hearthstone cards including non collectible cards.


/cards

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/hearthstone/cards?locale=&collectible=&cost=&attack=&health=&durability=&callback="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AllCardsApi;

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

public class AllCardsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        AllCardsApi apiInstance = new AllCardsApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
        BigDecimal collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards.
        BigDecimal cost = 8.14; // BigDecimal | Return only cards of a certain cost. 
        BigDecimal attack = 8.14; // BigDecimal | Return only cards with a certain attack.
        BigDecimal health = 8.14; // BigDecimal | Return only cards with a certain health.
        BigDecimal durability = 8.14; // BigDecimal |  Return only cards with a certain durability.
        String callback = callback_example; // String | Request data to be returned as a JsonP callback.
        try {
            allCards result = apiInstance.getAllcards(apiecoKey, locale, collectible, cost, attack, health, durability, callback);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AllCardsApi#getAllcards");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AllCardsApi;

public class AllCardsApiExample {

    public static void main(String[] args) {
        AllCardsApi apiInstance = new AllCardsApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
        BigDecimal collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards.
        BigDecimal cost = 8.14; // BigDecimal | Return only cards of a certain cost. 
        BigDecimal attack = 8.14; // BigDecimal | Return only cards with a certain attack.
        BigDecimal health = 8.14; // BigDecimal | Return only cards with a certain health.
        BigDecimal durability = 8.14; // BigDecimal |  Return only cards with a certain durability.
        String callback = callback_example; // String | Request data to be returned as a JsonP callback.
        try {
            allCards result = apiInstance.getAllcards(apiecoKey, locale, collectible, cost, attack, health, durability, callback);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AllCardsApi#getAllcards");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

BigDecimal *apiecoKey = 8.14; // 
String *locale = locale_example; // What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
BigDecimal *collectible = 8.14; // Set this to 1 to only return collectible cards. (optional)
BigDecimal *cost = 8.14; // Return only cards of a certain cost.  (optional)
BigDecimal *attack = 8.14; // Return only cards with a certain attack. (optional)
BigDecimal *health = 8.14; // Return only cards with a certain health. (optional)
BigDecimal *durability = 8.14; //  Return only cards with a certain durability. (optional)
String *callback = callback_example; // Request data to be returned as a JsonP callback. (optional)

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

// Returns all available Hearthstone cards including non collectible cards.
[apiInstance getAllcardsWith:apiecoKey
    locale:locale
    collectible:collectible
    cost:cost
    attack:attack
    health:health
    durability:durability
    callback:callback
              completionHandler: ^(allCards output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HearthStone = require('hearth_stone');
var defaultClient = HearthStone.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new HearthStone.AllCardsApi()

var apiecoKey = 8.14; // {BigDecimal} 

var locale = locale_example; // {String} What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 

var opts = { 
  'collectible': 8.14, // {BigDecimal} Set this to 1 to only return collectible cards.
  'cost': 8.14, // {BigDecimal} Return only cards of a certain cost. 
  'attack': 8.14, // {BigDecimal} Return only cards with a certain attack.
  'health': 8.14, // {BigDecimal} Return only cards with a certain health.
  'durability': 8.14, // {BigDecimal}  Return only cards with a certain durability.
  'callback': callback_example // {String} Request data to be returned as a JsonP callback.
};

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

namespace Example
{
    public class getAllcardsExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new AllCardsApi();
            var apiecoKey = 8.14;  // BigDecimal | 
            var locale = locale_example;  // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
            var collectible = 8.14;  // BigDecimal | Set this to 1 to only return collectible cards. (optional) 
            var cost = 8.14;  // BigDecimal | Return only cards of a certain cost.  (optional) 
            var attack = 8.14;  // BigDecimal | Return only cards with a certain attack. (optional) 
            var health = 8.14;  // BigDecimal | Return only cards with a certain health. (optional) 
            var durability = 8.14;  // BigDecimal |  Return only cards with a certain durability. (optional) 
            var callback = callback_example;  // String | Request data to be returned as a JsonP callback. (optional) 

            try
            {
                // Returns all available Hearthstone cards including non collectible cards.
                allCards result = apiInstance.getAllcards(apiecoKey, locale, collectible, cost, attack, health, durability, callback);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AllCardsApi.getAllcards: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\AllCardsApi();
$apiecoKey = 8.14; // BigDecimal | 
$locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
$collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards.
$cost = 8.14; // BigDecimal | Return only cards of a certain cost. 
$attack = 8.14; // BigDecimal | Return only cards with a certain attack.
$health = 8.14; // BigDecimal | Return only cards with a certain health.
$durability = 8.14; // BigDecimal |  Return only cards with a certain durability.
$callback = callback_example; // String | Request data to be returned as a JsonP callback.

try {
    $result = $api_instance->getAllcards($apiecoKey, $locale, $collectible, $cost, $attack, $health, $durability, $callback);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AllCardsApi->getAllcards: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AllCardsApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::AllCardsApi->new();
my $apiecoKey = 8.14; # BigDecimal | 
my $locale = locale_example; # String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
my $collectible = 8.14; # BigDecimal | Set this to 1 to only return collectible cards.
my $cost = 8.14; # BigDecimal | Return only cards of a certain cost. 
my $attack = 8.14; # BigDecimal | Return only cards with a certain attack.
my $health = 8.14; # BigDecimal | Return only cards with a certain health.
my $durability = 8.14; # BigDecimal |  Return only cards with a certain durability.
my $callback = callback_example; # String | Request data to be returned as a JsonP callback.

eval { 
    my $result = $api_instance->getAllcards(apiecoKey => $apiecoKey, locale => $locale, collectible => $collectible, cost => $cost, attack => $attack, health => $health, durability => $durability, callback => $callback);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AllCardsApi->getAllcards: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.AllCardsApi()
apiecoKey = 8.14 # BigDecimal | 
locale = locale_example # String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
collectible = 8.14 # BigDecimal | Set this to 1 to only return collectible cards. (optional)
cost = 8.14 # BigDecimal | Return only cards of a certain cost.  (optional)
attack = 8.14 # BigDecimal | Return only cards with a certain attack. (optional)
health = 8.14 # BigDecimal | Return only cards with a certain health. (optional)
durability = 8.14 # BigDecimal |  Return only cards with a certain durability. (optional)
callback = callback_example # String | Request data to be returned as a JsonP callback. (optional)

try: 
    # Returns all available Hearthstone cards including non collectible cards.
    api_response = api_instance.get_allcards(apiecoKey, locale, collectible=collectible, cost=cost, attack=attack, health=health, durability=durability, callback=callback)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AllCardsApi->getAllcards: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
BigDecimal
Required
Query parameters
Name Description
locale*
String
What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.
Required
collectible
BigDecimal
Set this to 1 to only return collectible cards.
cost
BigDecimal
Return only cards of a certain cost.
attack
BigDecimal
Return only cards with a certain attack.
health
BigDecimal
Return only cards with a certain health.
durability
BigDecimal
Return only cards with a certain durability.
callback
String
Request data to be returned as a JsonP callback.

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


CardBacks

cardBacks

Returns a list of all the card backs.


/cardbacks

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/hearthstone/cardbacks?callback=&locale="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardBacksApi;

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

public class CardBacksApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        CardBacksApi apiInstance = new CardBacksApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String callback = callback_example; // String | Request data to be returned as a JsonP callback.
        String locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
        try {
            cardback result = apiInstance.cardBacks(apiecoKey, callback, locale);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardBacksApi#cardBacks");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardBacksApi;

public class CardBacksApiExample {

    public static void main(String[] args) {
        CardBacksApi apiInstance = new CardBacksApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String callback = callback_example; // String | Request data to be returned as a JsonP callback.
        String locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
        try {
            cardback result = apiInstance.cardBacks(apiecoKey, callback, locale);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardBacksApi#cardBacks");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

BigDecimal *apiecoKey = 8.14; //  (optional)
String *callback = callback_example; // Request data to be returned as a JsonP callback. (optional)
String *locale = locale_example; // What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional)

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

// Returns a list of all the card backs.
[apiInstance cardBacksWith:apiecoKey
    callback:callback
    locale:locale
              completionHandler: ^(cardback output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HearthStone = require('hearth_stone');
var defaultClient = HearthStone.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new HearthStone.CardBacksApi()

var opts = { 
  'apiecoKey': 8.14, // {BigDecimal} 
  'callback': callback_example, // {String} Request data to be returned as a JsonP callback.
  'locale': locale_example // {String} What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
};

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

namespace Example
{
    public class cardBacksExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new CardBacksApi();
            var apiecoKey = 8.14;  // BigDecimal |  (optional) 
            var callback = callback_example;  // String | Request data to be returned as a JsonP callback. (optional) 
            var locale = locale_example;  // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional) 

            try
            {
                // Returns a list of all the card backs.
                cardback result = apiInstance.cardBacks(apiecoKey, callback, locale);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardBacksApi.cardBacks: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\CardBacksApi();
$apiecoKey = 8.14; // BigDecimal | 
$callback = callback_example; // String | Request data to be returned as a JsonP callback.
$locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardBacksApi->new();
my $apiecoKey = 8.14; # BigDecimal | 
my $callback = callback_example; # String | Request data to be returned as a JsonP callback.
my $locale = locale_example; # String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 

eval { 
    my $result = $api_instance->cardBacks(apiecoKey => $apiecoKey, callback => $callback, locale => $locale);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardBacksApi->cardBacks: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardBacksApi()
apiecoKey = 8.14 # BigDecimal |  (optional)
callback = callback_example # String | Request data to be returned as a JsonP callback. (optional)
locale = locale_example # String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional)

try: 
    # Returns a list of all the card backs.
    api_response = api_instance.card_backs(apiecoKey=apiecoKey, callback=callback, locale=locale)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardBacksApi->cardBacks: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key
BigDecimal
Query parameters
Name Description
callback
String
Request data to be returned as a JsonP callback.
locale
String
What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


CardSearch


CardSet

getBySet

Returns all cards in a set. Example values: Blackrock Mountain, Classic.


/cards/set/{set}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/hearthstone/cards/set/{set}?locale=&collectible=&cost=&attack=&health=&durability=&callback="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardSetApi;

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

public class CardSetApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        CardSetApi apiInstance = new CardSetApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String set = set_example; // String |  Card set.
        String locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
        BigDecimal collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards.
        BigDecimal cost = 8.14; // BigDecimal | Return only cards of a certain cost. 
        BigDecimal attack = 8.14; // BigDecimal | Return only cards with a certain attack.
        BigDecimal health = 8.14; // BigDecimal | Return only cards with a certain health.
        BigDecimal durability = 8.14; // BigDecimal |  Return only cards with a certain durability.
        String callback = callback_example; // String | Request data to be returned as a JsonP callback.
        try {
            cardSet result = apiInstance.getBySet(apiecoKey, set, locale, collectible, cost, attack, health, durability, callback);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardSetApi#getBySet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardSetApi;

public class CardSetApiExample {

    public static void main(String[] args) {
        CardSetApi apiInstance = new CardSetApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String set = set_example; // String |  Card set.
        String locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
        BigDecimal collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards.
        BigDecimal cost = 8.14; // BigDecimal | Return only cards of a certain cost. 
        BigDecimal attack = 8.14; // BigDecimal | Return only cards with a certain attack.
        BigDecimal health = 8.14; // BigDecimal | Return only cards with a certain health.
        BigDecimal durability = 8.14; // BigDecimal |  Return only cards with a certain durability.
        String callback = callback_example; // String | Request data to be returned as a JsonP callback.
        try {
            cardSet result = apiInstance.getBySet(apiecoKey, set, locale, collectible, cost, attack, health, durability, callback);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardSetApi#getBySet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

BigDecimal *apiecoKey = 8.14; // 
String *set = set_example; //  Card set.
String *locale = locale_example; // What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional)
BigDecimal *collectible = 8.14; // Set this to 1 to only return collectible cards. (optional)
BigDecimal *cost = 8.14; // Return only cards of a certain cost.  (optional)
BigDecimal *attack = 8.14; // Return only cards with a certain attack. (optional)
BigDecimal *health = 8.14; // Return only cards with a certain health. (optional)
BigDecimal *durability = 8.14; //  Return only cards with a certain durability. (optional)
String *callback = callback_example; // Request data to be returned as a JsonP callback. (optional)

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

// Returns all cards in a set. Example values: Blackrock Mountain, Classic.
[apiInstance getBySetWith:apiecoKey
    set:set
    locale:locale
    collectible:collectible
    cost:cost
    attack:attack
    health:health
    durability:durability
    callback:callback
              completionHandler: ^(cardSet output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HearthStone = require('hearth_stone');
var defaultClient = HearthStone.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new HearthStone.CardSetApi()

var apiecoKey = 8.14; // {BigDecimal} 

var set = set_example; // {String}  Card set.

var opts = { 
  'locale': locale_example, // {String} What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
  'collectible': 8.14, // {BigDecimal} Set this to 1 to only return collectible cards.
  'cost': 8.14, // {BigDecimal} Return only cards of a certain cost. 
  'attack': 8.14, // {BigDecimal} Return only cards with a certain attack.
  'health': 8.14, // {BigDecimal} Return only cards with a certain health.
  'durability': 8.14, // {BigDecimal}  Return only cards with a certain durability.
  'callback': callback_example // {String} Request data to be returned as a JsonP callback.
};

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

namespace Example
{
    public class getBySetExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new CardSetApi();
            var apiecoKey = 8.14;  // BigDecimal | 
            var set = set_example;  // String |  Card set.
            var locale = locale_example;  // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional) 
            var collectible = 8.14;  // BigDecimal | Set this to 1 to only return collectible cards. (optional) 
            var cost = 8.14;  // BigDecimal | Return only cards of a certain cost.  (optional) 
            var attack = 8.14;  // BigDecimal | Return only cards with a certain attack. (optional) 
            var health = 8.14;  // BigDecimal | Return only cards with a certain health. (optional) 
            var durability = 8.14;  // BigDecimal |  Return only cards with a certain durability. (optional) 
            var callback = callback_example;  // String | Request data to be returned as a JsonP callback. (optional) 

            try
            {
                // Returns all cards in a set. Example values: Blackrock Mountain, Classic.
                cardSet result = apiInstance.getBySet(apiecoKey, set, locale, collectible, cost, attack, health, durability, callback);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardSetApi.getBySet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\CardSetApi();
$apiecoKey = 8.14; // BigDecimal | 
$set = set_example; // String |  Card set.
$locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
$collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards.
$cost = 8.14; // BigDecimal | Return only cards of a certain cost. 
$attack = 8.14; // BigDecimal | Return only cards with a certain attack.
$health = 8.14; // BigDecimal | Return only cards with a certain health.
$durability = 8.14; // BigDecimal |  Return only cards with a certain durability.
$callback = callback_example; // String | Request data to be returned as a JsonP callback.

try {
    $result = $api_instance->getBySet($apiecoKey, $set, $locale, $collectible, $cost, $attack, $health, $durability, $callback);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CardSetApi->getBySet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CardSetApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardSetApi->new();
my $apiecoKey = 8.14; # BigDecimal | 
my $set = set_example; # String |  Card set.
my $locale = locale_example; # String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
my $collectible = 8.14; # BigDecimal | Set this to 1 to only return collectible cards.
my $cost = 8.14; # BigDecimal | Return only cards of a certain cost. 
my $attack = 8.14; # BigDecimal | Return only cards with a certain attack.
my $health = 8.14; # BigDecimal | Return only cards with a certain health.
my $durability = 8.14; # BigDecimal |  Return only cards with a certain durability.
my $callback = callback_example; # String | Request data to be returned as a JsonP callback.

eval { 
    my $result = $api_instance->getBySet(apiecoKey => $apiecoKey, set => $set, locale => $locale, collectible => $collectible, cost => $cost, attack => $attack, health => $health, durability => $durability, callback => $callback);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardSetApi->getBySet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardSetApi()
apiecoKey = 8.14 # BigDecimal | 
set = set_example # String |  Card set.
locale = locale_example # String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional)
collectible = 8.14 # BigDecimal | Set this to 1 to only return collectible cards. (optional)
cost = 8.14 # BigDecimal | Return only cards of a certain cost.  (optional)
attack = 8.14 # BigDecimal | Return only cards with a certain attack. (optional)
health = 8.14 # BigDecimal | Return only cards with a certain health. (optional)
durability = 8.14 # BigDecimal |  Return only cards with a certain durability. (optional)
callback = callback_example # String | Request data to be returned as a JsonP callback. (optional)

try: 
    # Returns all cards in a set. Example values: Blackrock Mountain, Classic.
    api_response = api_instance.get_by_set(apiecoKey, set, locale=locale, collectible=collectible, cost=cost, attack=attack, health=health, durability=durability, callback=callback)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardSetApi->getBySet: %s\n" % e)

Parameters

Path parameters
Name Description
set*
String
Card set.
Required
Header parameters
Name Description
apieco-key*
BigDecimal
Required
Query parameters
Name Description
locale
String
What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.
collectible
BigDecimal
Set this to 1 to only return collectible cards.
cost
BigDecimal
Return only cards of a certain cost.
attack
BigDecimal
Return only cards with a certain attack.
health
BigDecimal
Return only cards with a certain health.
durability
BigDecimal
Return only cards with a certain durability.
callback
String
Request data to be returned as a JsonP callback.

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


CardsByClass

getByClass

Returns all the cards of a class. Example values: Mage, Paladin.


/cards/classes/{class}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/hearthstone/cards/classes/{class}?locale=&collectible=&cost=&attack=&health=&durability=&callback="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsByClassApi;

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

public class CardsByClassApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        CardsByClassApi apiInstance = new CardsByClassApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String class = class_example; // String | Card class.
        String locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
        BigDecimal collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards.
        BigDecimal cost = 8.14; // BigDecimal | Return only cards of a certain cost. 
        BigDecimal attack = 8.14; // BigDecimal | Return only cards with a certain attack.
        BigDecimal health = 8.14; // BigDecimal | Return only cards with a certain health.
        BigDecimal durability = 8.14; // BigDecimal |  Return only cards with a certain durability.
        String callback = callback_example; // String | Request data to be returned as a JsonP callback.
        try {
            cardSet result = apiInstance.getByClass(apiecoKey, class, locale, collectible, cost, attack, health, durability, callback);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsByClassApi#getByClass");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsByClassApi;

public class CardsByClassApiExample {

    public static void main(String[] args) {
        CardsByClassApi apiInstance = new CardsByClassApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String class = class_example; // String | Card class.
        String locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
        BigDecimal collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards.
        BigDecimal cost = 8.14; // BigDecimal | Return only cards of a certain cost. 
        BigDecimal attack = 8.14; // BigDecimal | Return only cards with a certain attack.
        BigDecimal health = 8.14; // BigDecimal | Return only cards with a certain health.
        BigDecimal durability = 8.14; // BigDecimal |  Return only cards with a certain durability.
        String callback = callback_example; // String | Request data to be returned as a JsonP callback.
        try {
            cardSet result = apiInstance.getByClass(apiecoKey, class, locale, collectible, cost, attack, health, durability, callback);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsByClassApi#getByClass");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

BigDecimal *apiecoKey = 8.14; // 
String *class = class_example; // Card class.
String *locale = locale_example; // What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional)
BigDecimal *collectible = 8.14; // Set this to 1 to only return collectible cards. (optional)
BigDecimal *cost = 8.14; // Return only cards of a certain cost.  (optional)
BigDecimal *attack = 8.14; // Return only cards with a certain attack. (optional)
BigDecimal *health = 8.14; // Return only cards with a certain health. (optional)
BigDecimal *durability = 8.14; //  Return only cards with a certain durability. (optional)
String *callback = callback_example; // Request data to be returned as a JsonP callback. (optional)

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

// Returns all the cards of a class. Example values: Mage, Paladin.
[apiInstance getByClassWith:apiecoKey
    class:class
    locale:locale
    collectible:collectible
    cost:cost
    attack:attack
    health:health
    durability:durability
    callback:callback
              completionHandler: ^(cardSet output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HearthStone = require('hearth_stone');
var defaultClient = HearthStone.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new HearthStone.CardsByClassApi()

var apiecoKey = 8.14; // {BigDecimal} 

var class = class_example; // {String} Card class.

var opts = { 
  'locale': locale_example, // {String} What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
  'collectible': 8.14, // {BigDecimal} Set this to 1 to only return collectible cards.
  'cost': 8.14, // {BigDecimal} Return only cards of a certain cost. 
  'attack': 8.14, // {BigDecimal} Return only cards with a certain attack.
  'health': 8.14, // {BigDecimal} Return only cards with a certain health.
  'durability': 8.14, // {BigDecimal}  Return only cards with a certain durability.
  'callback': callback_example // {String} Request data to be returned as a JsonP callback.
};

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

namespace Example
{
    public class getByClassExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new CardsByClassApi();
            var apiecoKey = 8.14;  // BigDecimal | 
            var class = class_example;  // String | Card class.
            var locale = locale_example;  // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional) 
            var collectible = 8.14;  // BigDecimal | Set this to 1 to only return collectible cards. (optional) 
            var cost = 8.14;  // BigDecimal | Return only cards of a certain cost.  (optional) 
            var attack = 8.14;  // BigDecimal | Return only cards with a certain attack. (optional) 
            var health = 8.14;  // BigDecimal | Return only cards with a certain health. (optional) 
            var durability = 8.14;  // BigDecimal |  Return only cards with a certain durability. (optional) 
            var callback = callback_example;  // String | Request data to be returned as a JsonP callback. (optional) 

            try
            {
                // Returns all the cards of a class. Example values: Mage, Paladin.
                cardSet result = apiInstance.getByClass(apiecoKey, class, locale, collectible, cost, attack, health, durability, callback);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsByClassApi.getByClass: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\CardsByClassApi();
$apiecoKey = 8.14; // BigDecimal | 
$class = class_example; // String | Card class.
$locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
$collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards.
$cost = 8.14; // BigDecimal | Return only cards of a certain cost. 
$attack = 8.14; // BigDecimal | Return only cards with a certain attack.
$health = 8.14; // BigDecimal | Return only cards with a certain health.
$durability = 8.14; // BigDecimal |  Return only cards with a certain durability.
$callback = callback_example; // String | Request data to be returned as a JsonP callback.

try {
    $result = $api_instance->getByClass($apiecoKey, $class, $locale, $collectible, $cost, $attack, $health, $durability, $callback);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CardsByClassApi->getByClass: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CardsByClassApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsByClassApi->new();
my $apiecoKey = 8.14; # BigDecimal | 
my $class = class_example; # String | Card class.
my $locale = locale_example; # String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
my $collectible = 8.14; # BigDecimal | Set this to 1 to only return collectible cards.
my $cost = 8.14; # BigDecimal | Return only cards of a certain cost. 
my $attack = 8.14; # BigDecimal | Return only cards with a certain attack.
my $health = 8.14; # BigDecimal | Return only cards with a certain health.
my $durability = 8.14; # BigDecimal |  Return only cards with a certain durability.
my $callback = callback_example; # String | Request data to be returned as a JsonP callback.

eval { 
    my $result = $api_instance->getByClass(apiecoKey => $apiecoKey, class => $class, locale => $locale, collectible => $collectible, cost => $cost, attack => $attack, health => $health, durability => $durability, callback => $callback);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsByClassApi->getByClass: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsByClassApi()
apiecoKey = 8.14 # BigDecimal | 
class = class_example # String | Card class.
locale = locale_example # String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional)
collectible = 8.14 # BigDecimal | Set this to 1 to only return collectible cards. (optional)
cost = 8.14 # BigDecimal | Return only cards of a certain cost.  (optional)
attack = 8.14 # BigDecimal | Return only cards with a certain attack. (optional)
health = 8.14 # BigDecimal | Return only cards with a certain health. (optional)
durability = 8.14 # BigDecimal |  Return only cards with a certain durability. (optional)
callback = callback_example # String | Request data to be returned as a JsonP callback. (optional)

try: 
    # Returns all the cards of a class. Example values: Mage, Paladin.
    api_response = api_instance.get_by_class(apiecoKey, class, locale=locale, collectible=collectible, cost=cost, attack=attack, health=health, durability=durability, callback=callback)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsByClassApi->getByClass: %s\n" % e)

Parameters

Path parameters
Name Description
class*
String
Card class.
Required
Header parameters
Name Description
apieco-key*
BigDecimal
Required
Query parameters
Name Description
locale
String
What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.
collectible
BigDecimal
Set this to 1 to only return collectible cards.
cost
BigDecimal
Return only cards of a certain cost.
attack
BigDecimal
Return only cards with a certain attack.
health
BigDecimal
Return only cards with a certain health.
durability
BigDecimal
Return only cards with a certain durability.
callback
String
Request data to be returned as a JsonP callback.

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


CardsByFaction

getByFaction

RReturns all the cards of a certain faction. Example values: Horde, Neutral.


/cards/factions/{faction}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/hearthstone/cards/factions/{faction}?locale=&collectible=&cost=&attack=&health=&durability=&callback="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsByFactionApi;

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

public class CardsByFactionApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        CardsByFactionApi apiInstance = new CardsByFactionApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String faction = faction_example; // String | Card Faction.
        String locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
        BigDecimal collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards.
        BigDecimal cost = 8.14; // BigDecimal | Return only cards of a certain cost. 
        BigDecimal attack = 8.14; // BigDecimal | Return only cards with a certain attack.
        BigDecimal health = 8.14; // BigDecimal | Return only cards with a certain health.
        BigDecimal durability = 8.14; // BigDecimal |  Return only cards with a certain durability.
        String callback = callback_example; // String | Request data to be returned as a JsonP callback.
        try {
            cardSet result = apiInstance.getByFaction(apiecoKey, faction, locale, collectible, cost, attack, health, durability, callback);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsByFactionApi#getByFaction");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsByFactionApi;

public class CardsByFactionApiExample {

    public static void main(String[] args) {
        CardsByFactionApi apiInstance = new CardsByFactionApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String faction = faction_example; // String | Card Faction.
        String locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
        BigDecimal collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards.
        BigDecimal cost = 8.14; // BigDecimal | Return only cards of a certain cost. 
        BigDecimal attack = 8.14; // BigDecimal | Return only cards with a certain attack.
        BigDecimal health = 8.14; // BigDecimal | Return only cards with a certain health.
        BigDecimal durability = 8.14; // BigDecimal |  Return only cards with a certain durability.
        String callback = callback_example; // String | Request data to be returned as a JsonP callback.
        try {
            cardSet result = apiInstance.getByFaction(apiecoKey, faction, locale, collectible, cost, attack, health, durability, callback);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsByFactionApi#getByFaction");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

BigDecimal *apiecoKey = 8.14; // 
String *faction = faction_example; // Card Faction.
String *locale = locale_example; // What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional)
BigDecimal *collectible = 8.14; // Set this to 1 to only return collectible cards. (optional)
BigDecimal *cost = 8.14; // Return only cards of a certain cost.  (optional)
BigDecimal *attack = 8.14; // Return only cards with a certain attack. (optional)
BigDecimal *health = 8.14; // Return only cards with a certain health. (optional)
BigDecimal *durability = 8.14; //  Return only cards with a certain durability. (optional)
String *callback = callback_example; // Request data to be returned as a JsonP callback. (optional)

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

// RReturns all the cards of a certain faction. Example values: Horde, Neutral.
[apiInstance getByFactionWith:apiecoKey
    faction:faction
    locale:locale
    collectible:collectible
    cost:cost
    attack:attack
    health:health
    durability:durability
    callback:callback
              completionHandler: ^(cardSet output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HearthStone = require('hearth_stone');
var defaultClient = HearthStone.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new HearthStone.CardsByFactionApi()

var apiecoKey = 8.14; // {BigDecimal} 

var faction = faction_example; // {String} Card Faction.

var opts = { 
  'locale': locale_example, // {String} What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
  'collectible': 8.14, // {BigDecimal} Set this to 1 to only return collectible cards.
  'cost': 8.14, // {BigDecimal} Return only cards of a certain cost. 
  'attack': 8.14, // {BigDecimal} Return only cards with a certain attack.
  'health': 8.14, // {BigDecimal} Return only cards with a certain health.
  'durability': 8.14, // {BigDecimal}  Return only cards with a certain durability.
  'callback': callback_example // {String} Request data to be returned as a JsonP callback.
};

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

namespace Example
{
    public class getByFactionExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new CardsByFactionApi();
            var apiecoKey = 8.14;  // BigDecimal | 
            var faction = faction_example;  // String | Card Faction.
            var locale = locale_example;  // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional) 
            var collectible = 8.14;  // BigDecimal | Set this to 1 to only return collectible cards. (optional) 
            var cost = 8.14;  // BigDecimal | Return only cards of a certain cost.  (optional) 
            var attack = 8.14;  // BigDecimal | Return only cards with a certain attack. (optional) 
            var health = 8.14;  // BigDecimal | Return only cards with a certain health. (optional) 
            var durability = 8.14;  // BigDecimal |  Return only cards with a certain durability. (optional) 
            var callback = callback_example;  // String | Request data to be returned as a JsonP callback. (optional) 

            try
            {
                // RReturns all the cards of a certain faction. Example values: Horde, Neutral.
                cardSet result = apiInstance.getByFaction(apiecoKey, faction, locale, collectible, cost, attack, health, durability, callback);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsByFactionApi.getByFaction: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\CardsByFactionApi();
$apiecoKey = 8.14; // BigDecimal | 
$faction = faction_example; // String | Card Faction.
$locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
$collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards.
$cost = 8.14; // BigDecimal | Return only cards of a certain cost. 
$attack = 8.14; // BigDecimal | Return only cards with a certain attack.
$health = 8.14; // BigDecimal | Return only cards with a certain health.
$durability = 8.14; // BigDecimal |  Return only cards with a certain durability.
$callback = callback_example; // String | Request data to be returned as a JsonP callback.

try {
    $result = $api_instance->getByFaction($apiecoKey, $faction, $locale, $collectible, $cost, $attack, $health, $durability, $callback);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CardsByFactionApi->getByFaction: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CardsByFactionApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsByFactionApi->new();
my $apiecoKey = 8.14; # BigDecimal | 
my $faction = faction_example; # String | Card Faction.
my $locale = locale_example; # String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
my $collectible = 8.14; # BigDecimal | Set this to 1 to only return collectible cards.
my $cost = 8.14; # BigDecimal | Return only cards of a certain cost. 
my $attack = 8.14; # BigDecimal | Return only cards with a certain attack.
my $health = 8.14; # BigDecimal | Return only cards with a certain health.
my $durability = 8.14; # BigDecimal |  Return only cards with a certain durability.
my $callback = callback_example; # String | Request data to be returned as a JsonP callback.

eval { 
    my $result = $api_instance->getByFaction(apiecoKey => $apiecoKey, faction => $faction, locale => $locale, collectible => $collectible, cost => $cost, attack => $attack, health => $health, durability => $durability, callback => $callback);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsByFactionApi->getByFaction: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsByFactionApi()
apiecoKey = 8.14 # BigDecimal | 
faction = faction_example # String | Card Faction.
locale = locale_example # String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional)
collectible = 8.14 # BigDecimal | Set this to 1 to only return collectible cards. (optional)
cost = 8.14 # BigDecimal | Return only cards of a certain cost.  (optional)
attack = 8.14 # BigDecimal | Return only cards with a certain attack. (optional)
health = 8.14 # BigDecimal | Return only cards with a certain health. (optional)
durability = 8.14 # BigDecimal |  Return only cards with a certain durability. (optional)
callback = callback_example # String | Request data to be returned as a JsonP callback. (optional)

try: 
    # RReturns all the cards of a certain faction. Example values: Horde, Neutral.
    api_response = api_instance.get_by_faction(apiecoKey, faction, locale=locale, collectible=collectible, cost=cost, attack=attack, health=health, durability=durability, callback=callback)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsByFactionApi->getByFaction: %s\n" % e)

Parameters

Path parameters
Name Description
faction*
String
Card Faction.
Required
Header parameters
Name Description
apieco-key*
BigDecimal
Required
Query parameters
Name Description
locale
String
What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.
collectible
BigDecimal
Set this to 1 to only return collectible cards.
cost
BigDecimal
Return only cards of a certain cost.
attack
BigDecimal
Return only cards with a certain attack.
health
BigDecimal
Return only cards with a certain health.
durability
BigDecimal
Return only cards with a certain durability.
callback
String
Request data to be returned as a JsonP callback.

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


CardsByQuality

getByQuality

Returns all the cards of a certain quality. Example values: Legendary, Common.


/cards/qualities/{quality}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/hearthstone/cards/qualities/{quality}?locale=&collectible=&cost=&attack=&health=&durability=&callback="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsByQualityApi;

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

public class CardsByQualityApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        CardsByQualityApi apiInstance = new CardsByQualityApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String quality = quality_example; // String | Card Quality.
        String locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
        BigDecimal collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards.
        BigDecimal cost = 8.14; // BigDecimal | Return only cards of a certain cost. 
        BigDecimal attack = 8.14; // BigDecimal | Return only cards with a certain attack.
        BigDecimal health = 8.14; // BigDecimal | Return only cards with a certain health.
        BigDecimal durability = 8.14; // BigDecimal |  Return only cards with a certain durability.
        String callback = callback_example; // String | Request data to be returned as a JsonP callback.
        try {
            cardSet result = apiInstance.getByQuality(apiecoKey, quality, locale, collectible, cost, attack, health, durability, callback);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsByQualityApi#getByQuality");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsByQualityApi;

public class CardsByQualityApiExample {

    public static void main(String[] args) {
        CardsByQualityApi apiInstance = new CardsByQualityApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String quality = quality_example; // String | Card Quality.
        String locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
        BigDecimal collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards.
        BigDecimal cost = 8.14; // BigDecimal | Return only cards of a certain cost. 
        BigDecimal attack = 8.14; // BigDecimal | Return only cards with a certain attack.
        BigDecimal health = 8.14; // BigDecimal | Return only cards with a certain health.
        BigDecimal durability = 8.14; // BigDecimal |  Return only cards with a certain durability.
        String callback = callback_example; // String | Request data to be returned as a JsonP callback.
        try {
            cardSet result = apiInstance.getByQuality(apiecoKey, quality, locale, collectible, cost, attack, health, durability, callback);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsByQualityApi#getByQuality");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

BigDecimal *apiecoKey = 8.14; // 
String *quality = quality_example; // Card Quality.
String *locale = locale_example; // What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional)
BigDecimal *collectible = 8.14; // Set this to 1 to only return collectible cards. (optional)
BigDecimal *cost = 8.14; // Return only cards of a certain cost.  (optional)
BigDecimal *attack = 8.14; // Return only cards with a certain attack. (optional)
BigDecimal *health = 8.14; // Return only cards with a certain health. (optional)
BigDecimal *durability = 8.14; //  Return only cards with a certain durability. (optional)
String *callback = callback_example; // Request data to be returned as a JsonP callback. (optional)

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

// Returns all the cards of a certain quality. Example values: Legendary, Common.
[apiInstance getByQualityWith:apiecoKey
    quality:quality
    locale:locale
    collectible:collectible
    cost:cost
    attack:attack
    health:health
    durability:durability
    callback:callback
              completionHandler: ^(cardSet output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HearthStone = require('hearth_stone');
var defaultClient = HearthStone.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new HearthStone.CardsByQualityApi()

var apiecoKey = 8.14; // {BigDecimal} 

var quality = quality_example; // {String} Card Quality.

var opts = { 
  'locale': locale_example, // {String} What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
  'collectible': 8.14, // {BigDecimal} Set this to 1 to only return collectible cards.
  'cost': 8.14, // {BigDecimal} Return only cards of a certain cost. 
  'attack': 8.14, // {BigDecimal} Return only cards with a certain attack.
  'health': 8.14, // {BigDecimal} Return only cards with a certain health.
  'durability': 8.14, // {BigDecimal}  Return only cards with a certain durability.
  'callback': callback_example // {String} Request data to be returned as a JsonP callback.
};

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

namespace Example
{
    public class getByQualityExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new CardsByQualityApi();
            var apiecoKey = 8.14;  // BigDecimal | 
            var quality = quality_example;  // String | Card Quality.
            var locale = locale_example;  // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional) 
            var collectible = 8.14;  // BigDecimal | Set this to 1 to only return collectible cards. (optional) 
            var cost = 8.14;  // BigDecimal | Return only cards of a certain cost.  (optional) 
            var attack = 8.14;  // BigDecimal | Return only cards with a certain attack. (optional) 
            var health = 8.14;  // BigDecimal | Return only cards with a certain health. (optional) 
            var durability = 8.14;  // BigDecimal |  Return only cards with a certain durability. (optional) 
            var callback = callback_example;  // String | Request data to be returned as a JsonP callback. (optional) 

            try
            {
                // Returns all the cards of a certain quality. Example values: Legendary, Common.
                cardSet result = apiInstance.getByQuality(apiecoKey, quality, locale, collectible, cost, attack, health, durability, callback);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsByQualityApi.getByQuality: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\CardsByQualityApi();
$apiecoKey = 8.14; // BigDecimal | 
$quality = quality_example; // String | Card Quality.
$locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
$collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards.
$cost = 8.14; // BigDecimal | Return only cards of a certain cost. 
$attack = 8.14; // BigDecimal | Return only cards with a certain attack.
$health = 8.14; // BigDecimal | Return only cards with a certain health.
$durability = 8.14; // BigDecimal |  Return only cards with a certain durability.
$callback = callback_example; // String | Request data to be returned as a JsonP callback.

try {
    $result = $api_instance->getByQuality($apiecoKey, $quality, $locale, $collectible, $cost, $attack, $health, $durability, $callback);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CardsByQualityApi->getByQuality: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CardsByQualityApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsByQualityApi->new();
my $apiecoKey = 8.14; # BigDecimal | 
my $quality = quality_example; # String | Card Quality.
my $locale = locale_example; # String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
my $collectible = 8.14; # BigDecimal | Set this to 1 to only return collectible cards.
my $cost = 8.14; # BigDecimal | Return only cards of a certain cost. 
my $attack = 8.14; # BigDecimal | Return only cards with a certain attack.
my $health = 8.14; # BigDecimal | Return only cards with a certain health.
my $durability = 8.14; # BigDecimal |  Return only cards with a certain durability.
my $callback = callback_example; # String | Request data to be returned as a JsonP callback.

eval { 
    my $result = $api_instance->getByQuality(apiecoKey => $apiecoKey, quality => $quality, locale => $locale, collectible => $collectible, cost => $cost, attack => $attack, health => $health, durability => $durability, callback => $callback);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsByQualityApi->getByQuality: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsByQualityApi()
apiecoKey = 8.14 # BigDecimal | 
quality = quality_example # String | Card Quality.
locale = locale_example # String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional)
collectible = 8.14 # BigDecimal | Set this to 1 to only return collectible cards. (optional)
cost = 8.14 # BigDecimal | Return only cards of a certain cost.  (optional)
attack = 8.14 # BigDecimal | Return only cards with a certain attack. (optional)
health = 8.14 # BigDecimal | Return only cards with a certain health. (optional)
durability = 8.14 # BigDecimal |  Return only cards with a certain durability. (optional)
callback = callback_example # String | Request data to be returned as a JsonP callback. (optional)

try: 
    # Returns all the cards of a certain quality. Example values: Legendary, Common.
    api_response = api_instance.get_by_quality(apiecoKey, quality, locale=locale, collectible=collectible, cost=cost, attack=attack, health=health, durability=durability, callback=callback)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsByQualityApi->getByQuality: %s\n" % e)

Parameters

Path parameters
Name Description
quality*
String
Card Quality.
Required
Header parameters
Name Description
apieco-key*
BigDecimal
Required
Query parameters
Name Description
locale
String
What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.
collectible
BigDecimal
Set this to 1 to only return collectible cards.
cost
BigDecimal
Return only cards of a certain cost.
attack
BigDecimal
Return only cards with a certain attack.
health
BigDecimal
Return only cards with a certain health.
durability
BigDecimal
Return only cards with a certain durability.
callback
String
Request data to be returned as a JsonP callback.

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


CardsByRace

getByRace

Returns all the cards of a certain race. Example values: Mech, Murloc.


/cards/races/{race}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/hearthstone/cards/races/{race}?locale=&collectible=&cost=&attack=&health=&durability=&callback="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsByRaceApi;

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

public class CardsByRaceApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        CardsByRaceApi apiInstance = new CardsByRaceApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String race = race_example; // String | Card Race.
        String locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
        BigDecimal collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards.
        BigDecimal cost = 8.14; // BigDecimal | Return only cards of a certain cost. 
        BigDecimal attack = 8.14; // BigDecimal | Return only cards with a certain attack.
        BigDecimal health = 8.14; // BigDecimal | Return only cards with a certain health.
        BigDecimal durability = 8.14; // BigDecimal |  Return only cards with a certain durability.
        String callback = callback_example; // String | Request data to be returned as a JsonP callback.
        try {
            cardSet result = apiInstance.getByRace(apiecoKey, race, locale, collectible, cost, attack, health, durability, callback);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsByRaceApi#getByRace");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsByRaceApi;

public class CardsByRaceApiExample {

    public static void main(String[] args) {
        CardsByRaceApi apiInstance = new CardsByRaceApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String race = race_example; // String | Card Race.
        String locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
        BigDecimal collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards.
        BigDecimal cost = 8.14; // BigDecimal | Return only cards of a certain cost. 
        BigDecimal attack = 8.14; // BigDecimal | Return only cards with a certain attack.
        BigDecimal health = 8.14; // BigDecimal | Return only cards with a certain health.
        BigDecimal durability = 8.14; // BigDecimal |  Return only cards with a certain durability.
        String callback = callback_example; // String | Request data to be returned as a JsonP callback.
        try {
            cardSet result = apiInstance.getByRace(apiecoKey, race, locale, collectible, cost, attack, health, durability, callback);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsByRaceApi#getByRace");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

BigDecimal *apiecoKey = 8.14; // 
String *race = race_example; // Card Race.
String *locale = locale_example; // What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional)
BigDecimal *collectible = 8.14; // Set this to 1 to only return collectible cards. (optional)
BigDecimal *cost = 8.14; // Return only cards of a certain cost.  (optional)
BigDecimal *attack = 8.14; // Return only cards with a certain attack. (optional)
BigDecimal *health = 8.14; // Return only cards with a certain health. (optional)
BigDecimal *durability = 8.14; //  Return only cards with a certain durability. (optional)
String *callback = callback_example; // Request data to be returned as a JsonP callback. (optional)

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

// Returns all the cards of a certain race. Example values: Mech, Murloc.
[apiInstance getByRaceWith:apiecoKey
    race:race
    locale:locale
    collectible:collectible
    cost:cost
    attack:attack
    health:health
    durability:durability
    callback:callback
              completionHandler: ^(cardSet output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HearthStone = require('hearth_stone');
var defaultClient = HearthStone.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new HearthStone.CardsByRaceApi()

var apiecoKey = 8.14; // {BigDecimal} 

var race = race_example; // {String} Card Race.

var opts = { 
  'locale': locale_example, // {String} What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
  'collectible': 8.14, // {BigDecimal} Set this to 1 to only return collectible cards.
  'cost': 8.14, // {BigDecimal} Return only cards of a certain cost. 
  'attack': 8.14, // {BigDecimal} Return only cards with a certain attack.
  'health': 8.14, // {BigDecimal} Return only cards with a certain health.
  'durability': 8.14, // {BigDecimal}  Return only cards with a certain durability.
  'callback': callback_example // {String} Request data to be returned as a JsonP callback.
};

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

namespace Example
{
    public class getByRaceExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new CardsByRaceApi();
            var apiecoKey = 8.14;  // BigDecimal | 
            var race = race_example;  // String | Card Race.
            var locale = locale_example;  // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional) 
            var collectible = 8.14;  // BigDecimal | Set this to 1 to only return collectible cards. (optional) 
            var cost = 8.14;  // BigDecimal | Return only cards of a certain cost.  (optional) 
            var attack = 8.14;  // BigDecimal | Return only cards with a certain attack. (optional) 
            var health = 8.14;  // BigDecimal | Return only cards with a certain health. (optional) 
            var durability = 8.14;  // BigDecimal |  Return only cards with a certain durability. (optional) 
            var callback = callback_example;  // String | Request data to be returned as a JsonP callback. (optional) 

            try
            {
                // Returns all the cards of a certain race. Example values: Mech, Murloc.
                cardSet result = apiInstance.getByRace(apiecoKey, race, locale, collectible, cost, attack, health, durability, callback);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsByRaceApi.getByRace: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\CardsByRaceApi();
$apiecoKey = 8.14; // BigDecimal | 
$race = race_example; // String | Card Race.
$locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
$collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards.
$cost = 8.14; // BigDecimal | Return only cards of a certain cost. 
$attack = 8.14; // BigDecimal | Return only cards with a certain attack.
$health = 8.14; // BigDecimal | Return only cards with a certain health.
$durability = 8.14; // BigDecimal |  Return only cards with a certain durability.
$callback = callback_example; // String | Request data to be returned as a JsonP callback.

try {
    $result = $api_instance->getByRace($apiecoKey, $race, $locale, $collectible, $cost, $attack, $health, $durability, $callback);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CardsByRaceApi->getByRace: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CardsByRaceApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsByRaceApi->new();
my $apiecoKey = 8.14; # BigDecimal | 
my $race = race_example; # String | Card Race.
my $locale = locale_example; # String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
my $collectible = 8.14; # BigDecimal | Set this to 1 to only return collectible cards.
my $cost = 8.14; # BigDecimal | Return only cards of a certain cost. 
my $attack = 8.14; # BigDecimal | Return only cards with a certain attack.
my $health = 8.14; # BigDecimal | Return only cards with a certain health.
my $durability = 8.14; # BigDecimal |  Return only cards with a certain durability.
my $callback = callback_example; # String | Request data to be returned as a JsonP callback.

eval { 
    my $result = $api_instance->getByRace(apiecoKey => $apiecoKey, race => $race, locale => $locale, collectible => $collectible, cost => $cost, attack => $attack, health => $health, durability => $durability, callback => $callback);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsByRaceApi->getByRace: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsByRaceApi()
apiecoKey = 8.14 # BigDecimal | 
race = race_example # String | Card Race.
locale = locale_example # String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional)
collectible = 8.14 # BigDecimal | Set this to 1 to only return collectible cards. (optional)
cost = 8.14 # BigDecimal | Return only cards of a certain cost.  (optional)
attack = 8.14 # BigDecimal | Return only cards with a certain attack. (optional)
health = 8.14 # BigDecimal | Return only cards with a certain health. (optional)
durability = 8.14 # BigDecimal |  Return only cards with a certain durability. (optional)
callback = callback_example # String | Request data to be returned as a JsonP callback. (optional)

try: 
    # Returns all the cards of a certain race. Example values: Mech, Murloc.
    api_response = api_instance.get_by_race(apiecoKey, race, locale=locale, collectible=collectible, cost=cost, attack=attack, health=health, durability=durability, callback=callback)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsByRaceApi->getByRace: %s\n" % e)

Parameters

Path parameters
Name Description
race*
String
Card Race.
Required
Header parameters
Name Description
apieco-key*
BigDecimal
Required
Query parameters
Name Description
locale
String
What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.
collectible
BigDecimal
Set this to 1 to only return collectible cards.
cost
BigDecimal
Return only cards of a certain cost.
attack
BigDecimal
Return only cards with a certain attack.
health
BigDecimal
Return only cards with a certain health.
durability
BigDecimal
Return only cards with a certain durability.
callback
String
Request data to be returned as a JsonP callback.

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


CardsByType

getByType

Returns all the cards of a certain type. Example values: Spell, Weapon.


/cards/types/{type}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/hearthstone/cards/types/{type}?locale=&collectible=&cost=&attack=&health=&durability=&callback="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CardsByTypeApi;

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

public class CardsByTypeApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        CardsByTypeApi apiInstance = new CardsByTypeApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String type = type_example; // String | Card Type.
        String locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
        BigDecimal collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards.
        BigDecimal cost = 8.14; // BigDecimal | Return only cards of a certain cost. 
        BigDecimal attack = 8.14; // BigDecimal | Return only cards with a certain attack.
        BigDecimal health = 8.14; // BigDecimal | Return only cards with a certain health.
        BigDecimal durability = 8.14; // BigDecimal |  Return only cards with a certain durability.
        String callback = callback_example; // String | Request data to be returned as a JsonP callback.
        try {
            cardSet result = apiInstance.getByType(apiecoKey, type, locale, collectible, cost, attack, health, durability, callback);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsByTypeApi#getByType");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CardsByTypeApi;

public class CardsByTypeApiExample {

    public static void main(String[] args) {
        CardsByTypeApi apiInstance = new CardsByTypeApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String type = type_example; // String | Card Type.
        String locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
        BigDecimal collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards.
        BigDecimal cost = 8.14; // BigDecimal | Return only cards of a certain cost. 
        BigDecimal attack = 8.14; // BigDecimal | Return only cards with a certain attack.
        BigDecimal health = 8.14; // BigDecimal | Return only cards with a certain health.
        BigDecimal durability = 8.14; // BigDecimal |  Return only cards with a certain durability.
        String callback = callback_example; // String | Request data to be returned as a JsonP callback.
        try {
            cardSet result = apiInstance.getByType(apiecoKey, type, locale, collectible, cost, attack, health, durability, callback);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CardsByTypeApi#getByType");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

BigDecimal *apiecoKey = 8.14; // 
String *type = type_example; // Card Type.
String *locale = locale_example; // What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional)
BigDecimal *collectible = 8.14; // Set this to 1 to only return collectible cards. (optional)
BigDecimal *cost = 8.14; // Return only cards of a certain cost.  (optional)
BigDecimal *attack = 8.14; // Return only cards with a certain attack. (optional)
BigDecimal *health = 8.14; // Return only cards with a certain health. (optional)
BigDecimal *durability = 8.14; //  Return only cards with a certain durability. (optional)
String *callback = callback_example; // Request data to be returned as a JsonP callback. (optional)

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

// Returns all the cards of a certain type. Example values: Spell, Weapon.
[apiInstance getByTypeWith:apiecoKey
    type:type
    locale:locale
    collectible:collectible
    cost:cost
    attack:attack
    health:health
    durability:durability
    callback:callback
              completionHandler: ^(cardSet output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HearthStone = require('hearth_stone');
var defaultClient = HearthStone.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new HearthStone.CardsByTypeApi()

var apiecoKey = 8.14; // {BigDecimal} 

var type = type_example; // {String} Card Type.

var opts = { 
  'locale': locale_example, // {String} What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
  'collectible': 8.14, // {BigDecimal} Set this to 1 to only return collectible cards.
  'cost': 8.14, // {BigDecimal} Return only cards of a certain cost. 
  'attack': 8.14, // {BigDecimal} Return only cards with a certain attack.
  'health': 8.14, // {BigDecimal} Return only cards with a certain health.
  'durability': 8.14, // {BigDecimal}  Return only cards with a certain durability.
  'callback': callback_example // {String} Request data to be returned as a JsonP callback.
};

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

namespace Example
{
    public class getByTypeExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new CardsByTypeApi();
            var apiecoKey = 8.14;  // BigDecimal | 
            var type = type_example;  // String | Card Type.
            var locale = locale_example;  // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional) 
            var collectible = 8.14;  // BigDecimal | Set this to 1 to only return collectible cards. (optional) 
            var cost = 8.14;  // BigDecimal | Return only cards of a certain cost.  (optional) 
            var attack = 8.14;  // BigDecimal | Return only cards with a certain attack. (optional) 
            var health = 8.14;  // BigDecimal | Return only cards with a certain health. (optional) 
            var durability = 8.14;  // BigDecimal |  Return only cards with a certain durability. (optional) 
            var callback = callback_example;  // String | Request data to be returned as a JsonP callback. (optional) 

            try
            {
                // Returns all the cards of a certain type. Example values: Spell, Weapon.
                cardSet result = apiInstance.getByType(apiecoKey, type, locale, collectible, cost, attack, health, durability, callback);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CardsByTypeApi.getByType: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\CardsByTypeApi();
$apiecoKey = 8.14; // BigDecimal | 
$type = type_example; // String | Card Type.
$locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
$collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards.
$cost = 8.14; // BigDecimal | Return only cards of a certain cost. 
$attack = 8.14; // BigDecimal | Return only cards with a certain attack.
$health = 8.14; // BigDecimal | Return only cards with a certain health.
$durability = 8.14; // BigDecimal |  Return only cards with a certain durability.
$callback = callback_example; // String | Request data to be returned as a JsonP callback.

try {
    $result = $api_instance->getByType($apiecoKey, $type, $locale, $collectible, $cost, $attack, $health, $durability, $callback);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CardsByTypeApi->getByType: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CardsByTypeApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CardsByTypeApi->new();
my $apiecoKey = 8.14; # BigDecimal | 
my $type = type_example; # String | Card Type.
my $locale = locale_example; # String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
my $collectible = 8.14; # BigDecimal | Set this to 1 to only return collectible cards.
my $cost = 8.14; # BigDecimal | Return only cards of a certain cost. 
my $attack = 8.14; # BigDecimal | Return only cards with a certain attack.
my $health = 8.14; # BigDecimal | Return only cards with a certain health.
my $durability = 8.14; # BigDecimal |  Return only cards with a certain durability.
my $callback = callback_example; # String | Request data to be returned as a JsonP callback.

eval { 
    my $result = $api_instance->getByType(apiecoKey => $apiecoKey, type => $type, locale => $locale, collectible => $collectible, cost => $cost, attack => $attack, health => $health, durability => $durability, callback => $callback);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CardsByTypeApi->getByType: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CardsByTypeApi()
apiecoKey = 8.14 # BigDecimal | 
type = type_example # String | Card Type.
locale = locale_example # String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional)
collectible = 8.14 # BigDecimal | Set this to 1 to only return collectible cards. (optional)
cost = 8.14 # BigDecimal | Return only cards of a certain cost.  (optional)
attack = 8.14 # BigDecimal | Return only cards with a certain attack. (optional)
health = 8.14 # BigDecimal | Return only cards with a certain health. (optional)
durability = 8.14 # BigDecimal |  Return only cards with a certain durability. (optional)
callback = callback_example # String | Request data to be returned as a JsonP callback. (optional)

try: 
    # Returns all the cards of a certain type. Example values: Spell, Weapon.
    api_response = api_instance.get_by_type(apiecoKey, type, locale=locale, collectible=collectible, cost=cost, attack=attack, health=health, durability=durability, callback=callback)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CardsByTypeApi->getByType: %s\n" % e)

Parameters

Path parameters
Name Description
type*
String
Card Type.
Required
Header parameters
Name Description
apieco-key*
BigDecimal
Required
Query parameters
Name Description
locale
String
What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.
collectible
BigDecimal
Set this to 1 to only return collectible cards.
cost
BigDecimal
Return only cards of a certain cost.
attack
BigDecimal
Return only cards with a certain attack.
health
BigDecimal
Return only cards with a certain health.
durability
BigDecimal
Return only cards with a certain durability.
callback
String
Request data to be returned as a JsonP callback.

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


Info

getInfo

Returns a list of current patch, classes, sets, types, factions, qualities, races and locales


/info

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/hearthstone/info?callback=&locale="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InfoApi;

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

public class InfoApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        InfoApi apiInstance = new InfoApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String callback = callback_example; // String | Request data to be returned as a JsonP callback.
        String locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
        try {
            info result = apiInstance.getInfo(apiecoKey, callback, locale);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#getInfo");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InfoApi;

public class InfoApiExample {

    public static void main(String[] args) {
        InfoApi apiInstance = new InfoApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String callback = callback_example; // String | Request data to be returned as a JsonP callback.
        String locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
        try {
            info result = apiInstance.getInfo(apiecoKey, callback, locale);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfoApi#getInfo");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

BigDecimal *apiecoKey = 8.14; // 
String *callback = callback_example; // Request data to be returned as a JsonP callback. (optional)
String *locale = locale_example; // What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional)

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

// Returns a list of current patch, classes, sets, types, factions, qualities, races and locales
[apiInstance getInfoWith:apiecoKey
    callback:callback
    locale:locale
              completionHandler: ^(info output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HearthStone = require('hearth_stone');
var defaultClient = HearthStone.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new HearthStone.InfoApi()

var apiecoKey = 8.14; // {BigDecimal} 

var opts = { 
  'callback': callback_example, // {String} Request data to be returned as a JsonP callback.
  'locale': locale_example // {String} What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 
};

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

namespace Example
{
    public class getInfoExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new InfoApi();
            var apiecoKey = 8.14;  // BigDecimal | 
            var callback = callback_example;  // String | Request data to be returned as a JsonP callback. (optional) 
            var locale = locale_example;  // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional) 

            try
            {
                // Returns a list of current patch, classes, sets, types, factions, qualities, races and locales
                info result = apiInstance.getInfo(apiecoKey, callback, locale);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InfoApi.getInfo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\InfoApi();
$apiecoKey = 8.14; // BigDecimal | 
$callback = callback_example; // String | Request data to be returned as a JsonP callback.
$locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 

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

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::InfoApi->new();
my $apiecoKey = 8.14; # BigDecimal | 
my $callback = callback_example; # String | Request data to be returned as a JsonP callback.
my $locale = locale_example; # String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. 

eval { 
    my $result = $api_instance->getInfo(apiecoKey => $apiecoKey, callback => $callback, locale => $locale);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InfoApi->getInfo: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.InfoApi()
apiecoKey = 8.14 # BigDecimal | 
callback = callback_example # String | Request data to be returned as a JsonP callback. (optional)
locale = locale_example # String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.  (optional)

try: 
    # Returns a list of current patch, classes, sets, types, factions, qualities, races and locales
    api_response = api_instance.get_info(apiecoKey, callback=callback, locale=locale)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfoApi->getInfo: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
BigDecimal
Required
Query parameters
Name Description
callback
String
Request data to be returned as a JsonP callback.
locale
String
What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


SingleCard

getByName

Returns card by name or ID.

This may return more then one card if they share the same name. Loatheb returns both the card and the boss.


/cards/{name}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/hearthstone/cards/{name}?locale=&collectible=&callback="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SingleCardApi;

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

public class SingleCardApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        SingleCardApi apiInstance = new SingleCardApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String name = name_example; // String | The name or ID of the card. Example values: Ysera, EX1_572.
        BigDecimal collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards. 
        String locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.
        String callback = callback_example; // String | Request data to be returned as a JsonP callback. 
        try {
            SingleCard result = apiInstance.getByName(apiecoKey, name, collectible, locale, callback);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SingleCardApi#getByName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SingleCardApi;

public class SingleCardApiExample {

    public static void main(String[] args) {
        SingleCardApi apiInstance = new SingleCardApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String name = name_example; // String | The name or ID of the card. Example values: Ysera, EX1_572.
        BigDecimal collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards. 
        String locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.
        String callback = callback_example; // String | Request data to be returned as a JsonP callback. 
        try {
            SingleCard result = apiInstance.getByName(apiecoKey, name, collectible, locale, callback);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SingleCardApi#getByName");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

BigDecimal *apiecoKey = 8.14; // 
String *name = name_example; // The name or ID of the card. Example values: Ysera, EX1_572.
BigDecimal *collectible = 8.14; // Set this to 1 to only return collectible cards. 
String *locale = locale_example; // What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. (optional)
String *callback = callback_example; // Request data to be returned as a JsonP callback.  (optional)

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

// Returns card by name or ID. 
[apiInstance getByNameWith:apiecoKey
    name:name
    collectible:collectible
    locale:locale
    callback:callback
              completionHandler: ^(SingleCard output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HearthStone = require('hearth_stone');
var defaultClient = HearthStone.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new HearthStone.SingleCardApi()

var apiecoKey = 8.14; // {BigDecimal} 

var name = name_example; // {String} The name or ID of the card. Example values: Ysera, EX1_572.

var collectible = 8.14; // {BigDecimal} Set this to 1 to only return collectible cards. 

var opts = { 
  'locale': locale_example, // {String} What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.
  'callback': callback_example // {String} Request data to be returned as a JsonP callback. 
};

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

namespace Example
{
    public class getByNameExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new SingleCardApi();
            var apiecoKey = 8.14;  // BigDecimal | 
            var name = name_example;  // String | The name or ID of the card. Example values: Ysera, EX1_572.
            var collectible = 8.14;  // BigDecimal | Set this to 1 to only return collectible cards. 
            var locale = locale_example;  // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. (optional) 
            var callback = callback_example;  // String | Request data to be returned as a JsonP callback.  (optional) 

            try
            {
                // Returns card by name or ID. 
                SingleCard result = apiInstance.getByName(apiecoKey, name, collectible, locale, callback);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SingleCardApi.getByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\SingleCardApi();
$apiecoKey = 8.14; // BigDecimal | 
$name = name_example; // String | The name or ID of the card. Example values: Ysera, EX1_572.
$collectible = 8.14; // BigDecimal | Set this to 1 to only return collectible cards. 
$locale = locale_example; // String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.
$callback = callback_example; // String | Request data to be returned as a JsonP callback. 

try {
    $result = $api_instance->getByName($apiecoKey, $name, $collectible, $locale, $callback);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SingleCardApi->getByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SingleCardApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::SingleCardApi->new();
my $apiecoKey = 8.14; # BigDecimal | 
my $name = name_example; # String | The name or ID of the card. Example values: Ysera, EX1_572.
my $collectible = 8.14; # BigDecimal | Set this to 1 to only return collectible cards. 
my $locale = locale_example; # String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.
my $callback = callback_example; # String | Request data to be returned as a JsonP callback. 

eval { 
    my $result = $api_instance->getByName(apiecoKey => $apiecoKey, name => $name, collectible => $collectible, locale => $locale, callback => $callback);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SingleCardApi->getByName: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.SingleCardApi()
apiecoKey = 8.14 # BigDecimal | 
name = name_example # String | The name or ID of the card. Example values: Ysera, EX1_572.
collectible = 8.14 # BigDecimal | Set this to 1 to only return collectible cards. 
locale = locale_example # String | What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH. (optional)
callback = callback_example # String | Request data to be returned as a JsonP callback.  (optional)

try: 
    # Returns card by name or ID. 
    api_response = api_instance.get_by_name(apiecoKey, name, collectible, locale=locale, callback=callback)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SingleCardApi->getByName: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
The name or ID of the card. Example values: Ysera, EX1_572.
Required
Header parameters
Name Description
apieco-key*
BigDecimal
Required
Query parameters
Name Description
locale
String
What locale to use in the response. Default locale is enUS. Available locales: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, plPL, ptBR, ruRU, zhCN, zhTW, jaJP, thTH.
collectible*
BigDecimal
Set this to 1 to only return collectible cards.
Required
callback
String
Request data to be returned as a JsonP callback.

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input