allBooks
List all books
/books
Usage and SDK Samples
curl -X GET "https://api.apieco.ir/game-of-thrones/api/books?name=&fromReleaseDate=&toReleaseDate="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BooksApi;
import java.io.File;
import java.util.*;
public class BooksApiExample {
public static void main(String[] args) {
BooksApi apiInstance = new BooksApi();
String apiecoKey = apiecoKey_example; // String |
String name = name_example; // String | Books with the given name are included in the response
date fromReleaseDate = 2013-10-20; // date | Books that were released after, or on, the given date are included in the response.
date toReleaseDate = 2013-10-20; // date | Books that were released before, or on, the given date are included in the response.
try {
array[inline_response_200_1] result = apiInstance.allBooks(apiecoKey, name, fromReleaseDate, toReleaseDate);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BooksApi#allBooks");
e.printStackTrace();
}
}
}
import io.swagger.client.api.BooksApi;
public class BooksApiExample {
public static void main(String[] args) {
BooksApi apiInstance = new BooksApi();
String apiecoKey = apiecoKey_example; // String |
String name = name_example; // String | Books with the given name are included in the response
date fromReleaseDate = 2013-10-20; // date | Books that were released after, or on, the given date are included in the response.
date toReleaseDate = 2013-10-20; // date | Books that were released before, or on, the given date are included in the response.
try {
array[inline_response_200_1] result = apiInstance.allBooks(apiecoKey, name, fromReleaseDate, toReleaseDate);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BooksApi#allBooks");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; //
String *name = name_example; // Books with the given name are included in the response (optional)
date *fromReleaseDate = 2013-10-20; // Books that were released after, or on, the given date are included in the response. (optional)
date *toReleaseDate = 2013-10-20; // Books that were released before, or on, the given date are included in the response. (optional)
BooksApi *apiInstance = [[BooksApi alloc] init];
// List all books
[apiInstance allBooksWith:apiecoKey
name:name
fromReleaseDate:fromReleaseDate
toReleaseDate:toReleaseDate
completionHandler: ^(array[inline_response_200_1] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var AnApiOfIceAndFire = require('an_api_of_ice_and_fire');
var api = new AnApiOfIceAndFire.BooksApi()
var apiecoKey = apiecoKey_example; // {String}
var opts = {
'name': name_example, // {String} Books with the given name are included in the response
'fromReleaseDate': 2013-10-20, // {date} Books that were released after, or on, the given date are included in the response.
'toReleaseDate': 2013-10-20 // {date} Books that were released before, or on, the given date are included in the response.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.allBooks(apiecoKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class allBooksExample
{
public void main()
{
var apiInstance = new BooksApi();
var apiecoKey = apiecoKey_example; // String |
var name = name_example; // String | Books with the given name are included in the response (optional)
var fromReleaseDate = 2013-10-20; // date | Books that were released after, or on, the given date are included in the response. (optional)
var toReleaseDate = 2013-10-20; // date | Books that were released before, or on, the given date are included in the response. (optional)
try
{
// List all books
array[inline_response_200_1] result = apiInstance.allBooks(apiecoKey, name, fromReleaseDate, toReleaseDate);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling BooksApi.allBooks: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\BooksApi();
$apiecoKey = apiecoKey_example; // String |
$name = name_example; // String | Books with the given name are included in the response
$fromReleaseDate = 2013-10-20; // date | Books that were released after, or on, the given date are included in the response.
$toReleaseDate = 2013-10-20; // date | Books that were released before, or on, the given date are included in the response.
try {
$result = $api_instance->allBooks($apiecoKey, $name, $fromReleaseDate, $toReleaseDate);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BooksApi->allBooks: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BooksApi;
my $api_instance = WWW::SwaggerClient::BooksApi->new();
my $apiecoKey = apiecoKey_example; # String |
my $name = name_example; # String | Books with the given name are included in the response
my $fromReleaseDate = 2013-10-20; # date | Books that were released after, or on, the given date are included in the response.
my $toReleaseDate = 2013-10-20; # date | Books that were released before, or on, the given date are included in the response.
eval {
my $result = $api_instance->allBooks(apiecoKey => $apiecoKey, name => $name, fromReleaseDate => $fromReleaseDate, toReleaseDate => $toReleaseDate);
print Dumper($result);
};
if ($@) {
warn "Exception when calling BooksApi->allBooks: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.BooksApi()
apiecoKey = apiecoKey_example # String |
name = name_example # String | Books with the given name are included in the response (optional)
fromReleaseDate = 2013-10-20 # date | Books that were released after, or on, the given date are included in the response. (optional)
toReleaseDate = 2013-10-20 # date | Books that were released before, or on, the given date are included in the response. (optional)
try:
# List all books
api_response = api_instance.all_books(apiecoKey, name=name, fromReleaseDate=fromReleaseDate, toReleaseDate=toReleaseDate)
pprint(api_response)
except ApiException as e:
print("Exception when calling BooksApi->allBooks: %s\n" % e)
Parameters
Header parameters
Name | Description |
---|---|
apieco-key* |
String
Required
|
Query parameters
Name | Description |
---|---|
name |
String
Books with the given name are included in the response
|
fromReleaseDate |
date
(date)
Books that were released after, or on, the given date are included in the response.
|
toReleaseDate |
date
(date)
Books that were released before, or on, the given date are included in the response.
|