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
Name | Description |
---|---|
apieco-key* |
BigDecimal
Required
|
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.
|