Lords Of The Rings API Documentation

Book

allBooks

List of all "The Lord of the Rings" books


/book

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/LOTR/book"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BookApi;

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

public class BookApiExample {

    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");

        BookApi apiInstance = new BookApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200 result = apiInstance.allBooks(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookApi#allBooks");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BookApi;

public class BookApiExample {

    public static void main(String[] args) {
        BookApi apiInstance = new BookApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200 result = apiInstance.allBooks(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookApi#allBooks");
            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"];

String *apiecoKey = apiecoKey_example; // 

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

[apiInstance allBooksWith:apiecoKey
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LordsOfTheRingsApiDocumentation_ = require('_lords_of_the_rings_api_documentation_');
var defaultClient = LordsOfTheRingsApiDocumentation_.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 LordsOfTheRingsApiDocumentation_.BookApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.allBooks(apiecoKey, 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()
        {
            
            // 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 BookApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                inline_response_200 result = apiInstance.allBooks(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BookApi.allBooks: " + 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\BookApi();
$apiecoKey = apiecoKey_example; // String | 

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

# 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::BookApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->allBooks(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BookApi->allBooks: $@\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.BookApi()
apiecoKey = apiecoKey_example # String | 

try: 
    api_response = api_instance.all_books(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BookApi->allBooks: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


bookAllChapters

Request all chapters of one specific book


/book/{id}/chapter

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/LOTR/book/{id}/chapter"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BookApi;

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

public class BookApiExample {

    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");

        BookApi apiInstance = new BookApi();
        String apiecoKey = apiecoKey_example; // String | 
        String id = id_example; // String | The Book id
        try {
            inline_response_200 result = apiInstance.bookAllChapters(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookApi#bookAllChapters");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BookApi;

public class BookApiExample {

    public static void main(String[] args) {
        BookApi apiInstance = new BookApi();
        String apiecoKey = apiecoKey_example; // String | 
        String id = id_example; // String | The Book id
        try {
            inline_response_200 result = apiInstance.bookAllChapters(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookApi#bookAllChapters");
            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"];

String *apiecoKey = apiecoKey_example; // 
String *id = id_example; // The Book id

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

[apiInstance bookAllChaptersWith:apiecoKey
    id:id
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LordsOfTheRingsApiDocumentation_ = require('_lords_of_the_rings_api_documentation_');
var defaultClient = LordsOfTheRingsApiDocumentation_.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 LordsOfTheRingsApiDocumentation_.BookApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = id_example; // {String} The Book id


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

namespace Example
{
    public class bookAllChaptersExample
    {
        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 BookApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = id_example;  // String | The Book id

            try
            {
                inline_response_200 result = apiInstance.bookAllChapters(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BookApi.bookAllChapters: " + 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\BookApi();
$apiecoKey = apiecoKey_example; // String | 
$id = id_example; // String | The Book id

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

# 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::BookApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = id_example; # String | The Book id

eval { 
    my $result = $api_instance->bookAllChapters(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BookApi->bookAllChapters: $@\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.BookApi()
apiecoKey = apiecoKey_example # String | 
id = id_example # String | The Book id

try: 
    api_response = api_instance.book_all_chapters(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BookApi->bookAllChapters: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
The Book id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


booksByID

List of all "The Lord of the Rings" books


/book/{id}

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/LOTR/book/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BookApi;

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

public class BookApiExample {

    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");

        BookApi apiInstance = new BookApi();
        String apiecoKey = apiecoKey_example; // String | 
        String id = id_example; // String | The Book id
        try {
            inline_response_200_1 result = apiInstance.booksByID(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookApi#booksByID");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BookApi;

public class BookApiExample {

    public static void main(String[] args) {
        BookApi apiInstance = new BookApi();
        String apiecoKey = apiecoKey_example; // String | 
        String id = id_example; // String | The Book id
        try {
            inline_response_200_1 result = apiInstance.booksByID(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookApi#booksByID");
            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"];

String *apiecoKey = apiecoKey_example; // 
String *id = id_example; // The Book id

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

[apiInstance booksByIDWith:apiecoKey
    id:id
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LordsOfTheRingsApiDocumentation_ = require('_lords_of_the_rings_api_documentation_');
var defaultClient = LordsOfTheRingsApiDocumentation_.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 LordsOfTheRingsApiDocumentation_.BookApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = id_example; // {String} The Book id


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

namespace Example
{
    public class booksByIDExample
    {
        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 BookApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = id_example;  // String | The Book id

            try
            {
                inline_response_200_1 result = apiInstance.booksByID(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BookApi.booksByID: " + 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\BookApi();
$apiecoKey = apiecoKey_example; // String | 
$id = id_example; // String | The Book id

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

# 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::BookApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = id_example; # String | The Book id

eval { 
    my $result = $api_instance->booksByID(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BookApi->booksByID: $@\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.BookApi()
apiecoKey = apiecoKey_example # String | 
id = id_example # String | The Book id

try: 
    api_response = api_instance.books_by_id(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BookApi->booksByID: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
The Book id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


Chapter

allChapters

List of all book chapters


/chapter

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/LOTR/chapter"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChapterApi;

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

public class ChapterApiExample {

    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");

        ChapterApi apiInstance = new ChapterApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_7 result = apiInstance.allChapters(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChapterApi#allChapters");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChapterApi;

public class ChapterApiExample {

    public static void main(String[] args) {
        ChapterApi apiInstance = new ChapterApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_7 result = apiInstance.allChapters(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChapterApi#allChapters");
            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"];

String *apiecoKey = apiecoKey_example; // 

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

[apiInstance allChaptersWith:apiecoKey
              completionHandler: ^(inline_response_200_7 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LordsOfTheRingsApiDocumentation_ = require('_lords_of_the_rings_api_documentation_');
var defaultClient = LordsOfTheRingsApiDocumentation_.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 LordsOfTheRingsApiDocumentation_.ChapterApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class allChaptersExample
    {
        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 ChapterApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                inline_response_200_7 result = apiInstance.allChapters(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChapterApi.allChapters: " + 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\ChapterApi();
$apiecoKey = apiecoKey_example; // String | 

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

# 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::ChapterApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->allChapters(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChapterApi->allChapters: $@\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.ChapterApi()
apiecoKey = apiecoKey_example # String | 

try: 
    api_response = api_instance.all_chapters(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChapterApi->allChapters: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


chapterByID

Request one specific book chapter


/chapter/{id}

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/LOTR/chapter/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChapterApi;

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

public class ChapterApiExample {

    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");

        ChapterApi apiInstance = new ChapterApi();
        String apiecoKey = apiecoKey_example; // String | 
        String id = id_example; // String | The Book id
        try {
            inline_response_200_7_docs result = apiInstance.chapterByID(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChapterApi#chapterByID");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChapterApi;

public class ChapterApiExample {

    public static void main(String[] args) {
        ChapterApi apiInstance = new ChapterApi();
        String apiecoKey = apiecoKey_example; // String | 
        String id = id_example; // String | The Book id
        try {
            inline_response_200_7_docs result = apiInstance.chapterByID(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChapterApi#chapterByID");
            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"];

String *apiecoKey = apiecoKey_example; // 
String *id = id_example; // The Book id

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

[apiInstance chapterByIDWith:apiecoKey
    id:id
              completionHandler: ^(inline_response_200_7_docs output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LordsOfTheRingsApiDocumentation_ = require('_lords_of_the_rings_api_documentation_');
var defaultClient = LordsOfTheRingsApiDocumentation_.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 LordsOfTheRingsApiDocumentation_.ChapterApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = id_example; // {String} The Book id


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

namespace Example
{
    public class chapterByIDExample
    {
        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 ChapterApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = id_example;  // String | The Book id

            try
            {
                inline_response_200_7_docs result = apiInstance.chapterByID(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChapterApi.chapterByID: " + 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\ChapterApi();
$apiecoKey = apiecoKey_example; // String | 
$id = id_example; // String | The Book id

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

# 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::ChapterApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = id_example; # String | The Book id

eval { 
    my $result = $api_instance->chapterByID(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChapterApi->chapterByID: $@\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.ChapterApi()
apiecoKey = apiecoKey_example # String | 
id = id_example # String | The Book id

try: 
    api_response = api_instance.chapter_by_id(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChapterApi->chapterByID: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
The Book id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


Character

characteQuotesrByID

Request all movie quotes of one specific character


/character/{id}/quote

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/LOTR/character/{id}/quote"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CharacterApi;

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

public class CharacterApiExample {

    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");

        CharacterApi apiInstance = new CharacterApi();
        String apiecoKey = apiecoKey_example; // String | 
        String id = id_example; // String | The Character id
        try {
            inline_response_200_4 result = apiInstance.characteQuotesrByID(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CharacterApi#characteQuotesrByID");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CharacterApi;

public class CharacterApiExample {

    public static void main(String[] args) {
        CharacterApi apiInstance = new CharacterApi();
        String apiecoKey = apiecoKey_example; // String | 
        String id = id_example; // String | The Character id
        try {
            inline_response_200_4 result = apiInstance.characteQuotesrByID(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CharacterApi#characteQuotesrByID");
            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"];

String *apiecoKey = apiecoKey_example; // 
String *id = id_example; // The Character id

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

[apiInstance characteQuotesrByIDWith:apiecoKey
    id:id
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LordsOfTheRingsApiDocumentation_ = require('_lords_of_the_rings_api_documentation_');
var defaultClient = LordsOfTheRingsApiDocumentation_.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 LordsOfTheRingsApiDocumentation_.CharacterApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = id_example; // {String} The Character id


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

namespace Example
{
    public class characteQuotesrByIDExample
    {
        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 CharacterApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = id_example;  // String | The Character id

            try
            {
                inline_response_200_4 result = apiInstance.characteQuotesrByID(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CharacterApi.characteQuotesrByID: " + 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\CharacterApi();
$apiecoKey = apiecoKey_example; // String | 
$id = id_example; // String | The Character id

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

# 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::CharacterApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = id_example; # String | The Character id

eval { 
    my $result = $api_instance->characteQuotesrByID(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CharacterApi->characteQuotesrByID: $@\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.CharacterApi()
apiecoKey = apiecoKey_example # String | 
id = id_example # String | The Character id

try: 
    api_response = api_instance.characte_quotesr_by_id(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CharacterApi->characteQuotesrByID: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
The Character id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


character

List of characters including metadata like name, gender, realm, race and more


/character

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/LOTR/character"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CharacterApi;

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

public class CharacterApiExample {

    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");

        CharacterApi apiInstance = new CharacterApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[inline_response_200_5] result = apiInstance.character(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CharacterApi#character");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CharacterApi;

public class CharacterApiExample {

    public static void main(String[] args) {
        CharacterApi apiInstance = new CharacterApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[inline_response_200_5] result = apiInstance.character(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CharacterApi#character");
            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"];

String *apiecoKey = apiecoKey_example; // 

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

[apiInstance characterWith:apiecoKey
              completionHandler: ^(array[inline_response_200_5] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LordsOfTheRingsApiDocumentation_ = require('_lords_of_the_rings_api_documentation_');
var defaultClient = LordsOfTheRingsApiDocumentation_.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 LordsOfTheRingsApiDocumentation_.CharacterApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class characterExample
    {
        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 CharacterApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                array[inline_response_200_5] result = apiInstance.character(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CharacterApi.character: " + 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\CharacterApi();
$apiecoKey = apiecoKey_example; // String | 

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

# 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::CharacterApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->character(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CharacterApi->character: $@\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.CharacterApi()
apiecoKey = apiecoKey_example # String | 

try: 
    api_response = api_instance.character(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CharacterApi->character: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


characterByID

Request one specific character


/character/{id}

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/LOTR/character/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CharacterApi;

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

public class CharacterApiExample {

    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");

        CharacterApi apiInstance = new CharacterApi();
        String apiecoKey = apiecoKey_example; // String | 
        String id = id_example; // String | The Character id
        try {
            inline_response_200_5 result = apiInstance.characterByID(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CharacterApi#characterByID");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CharacterApi;

public class CharacterApiExample {

    public static void main(String[] args) {
        CharacterApi apiInstance = new CharacterApi();
        String apiecoKey = apiecoKey_example; // String | 
        String id = id_example; // String | The Character id
        try {
            inline_response_200_5 result = apiInstance.characterByID(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CharacterApi#characterByID");
            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"];

String *apiecoKey = apiecoKey_example; // 
String *id = id_example; // The Character id

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

[apiInstance characterByIDWith:apiecoKey
    id:id
              completionHandler: ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LordsOfTheRingsApiDocumentation_ = require('_lords_of_the_rings_api_documentation_');
var defaultClient = LordsOfTheRingsApiDocumentation_.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 LordsOfTheRingsApiDocumentation_.CharacterApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = id_example; // {String} The Character id


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

namespace Example
{
    public class characterByIDExample
    {
        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 CharacterApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = id_example;  // String | The Character id

            try
            {
                inline_response_200_5 result = apiInstance.characterByID(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CharacterApi.characterByID: " + 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\CharacterApi();
$apiecoKey = apiecoKey_example; // String | 
$id = id_example; // String | The Character id

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

# 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::CharacterApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = id_example; # String | The Character id

eval { 
    my $result = $api_instance->characterByID(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CharacterApi->characterByID: $@\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.CharacterApi()
apiecoKey = apiecoKey_example # String | 
id = id_example # String | The Character id

try: 
    api_response = api_instance.character_by_id(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CharacterApi->characterByID: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
The Character id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


Movie

movies

List of all movies, including the "The Lord of the Rings" and the "The Hobbit" trilogies


/movie

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/LOTR/movie"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MovieApi;

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

public class MovieApiExample {

    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");

        MovieApi apiInstance = new MovieApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_2 result = apiInstance.movies(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MovieApi#movies");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MovieApi;

public class MovieApiExample {

    public static void main(String[] args) {
        MovieApi apiInstance = new MovieApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_2 result = apiInstance.movies(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MovieApi#movies");
            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"];

String *apiecoKey = apiecoKey_example; // 

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

[apiInstance moviesWith:apiecoKey
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LordsOfTheRingsApiDocumentation_ = require('_lords_of_the_rings_api_documentation_');
var defaultClient = LordsOfTheRingsApiDocumentation_.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 LordsOfTheRingsApiDocumentation_.MovieApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class moviesExample
    {
        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 MovieApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                inline_response_200_2 result = apiInstance.movies(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MovieApi.movies: " + 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\MovieApi();
$apiecoKey = apiecoKey_example; // String | 

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

# 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::MovieApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->movies(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MovieApi->movies: $@\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.MovieApi()
apiecoKey = apiecoKey_example # String | 

try: 
    api_response = api_instance.movies(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MovieApi->movies: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


moviesByID

List of all "The Lord of the Rings" books


/movie/{id}

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/LOTR/movie/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MovieApi;

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

public class MovieApiExample {

    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");

        MovieApi apiInstance = new MovieApi();
        String apiecoKey = apiecoKey_example; // String | 
        String id = id_example; // String | The Movie id
        try {
            inline_response_200_3 result = apiInstance.moviesByID(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MovieApi#moviesByID");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MovieApi;

public class MovieApiExample {

    public static void main(String[] args) {
        MovieApi apiInstance = new MovieApi();
        String apiecoKey = apiecoKey_example; // String | 
        String id = id_example; // String | The Movie id
        try {
            inline_response_200_3 result = apiInstance.moviesByID(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MovieApi#moviesByID");
            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"];

String *apiecoKey = apiecoKey_example; // 
String *id = id_example; // The Movie id

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

[apiInstance moviesByIDWith:apiecoKey
    id:id
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LordsOfTheRingsApiDocumentation_ = require('_lords_of_the_rings_api_documentation_');
var defaultClient = LordsOfTheRingsApiDocumentation_.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 LordsOfTheRingsApiDocumentation_.MovieApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = id_example; // {String} The Movie id


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

namespace Example
{
    public class moviesByIDExample
    {
        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 MovieApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = id_example;  // String | The Movie id

            try
            {
                inline_response_200_3 result = apiInstance.moviesByID(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MovieApi.moviesByID: " + 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\MovieApi();
$apiecoKey = apiecoKey_example; // String | 
$id = id_example; // String | The Movie id

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

# 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::MovieApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = id_example; # String | The Movie id

eval { 
    my $result = $api_instance->moviesByID(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MovieApi->moviesByID: $@\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.MovieApi()
apiecoKey = apiecoKey_example # String | 
id = id_example # String | The Movie id

try: 
    api_response = api_instance.movies_by_id(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MovieApi->moviesByID: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
The Movie id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


qoutesByID

Request all movie quotes for one specific movie (only working for the LotR trilogy)


/movie/{id}/qoute

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/LOTR/movie/{id}/qoute"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MovieApi;

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

public class MovieApiExample {

    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");

        MovieApi apiInstance = new MovieApi();
        String apiecoKey = apiecoKey_example; // String | 
        String id = id_example; // String | The Movie id
        try {
            inline_response_200_4 result = apiInstance.qoutesByID(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MovieApi#qoutesByID");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MovieApi;

public class MovieApiExample {

    public static void main(String[] args) {
        MovieApi apiInstance = new MovieApi();
        String apiecoKey = apiecoKey_example; // String | 
        String id = id_example; // String | The Movie id
        try {
            inline_response_200_4 result = apiInstance.qoutesByID(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MovieApi#qoutesByID");
            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"];

String *apiecoKey = apiecoKey_example; // 
String *id = id_example; // The Movie id

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

[apiInstance qoutesByIDWith:apiecoKey
    id:id
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LordsOfTheRingsApiDocumentation_ = require('_lords_of_the_rings_api_documentation_');
var defaultClient = LordsOfTheRingsApiDocumentation_.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 LordsOfTheRingsApiDocumentation_.MovieApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = id_example; // {String} The Movie id


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

namespace Example
{
    public class qoutesByIDExample
    {
        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 MovieApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = id_example;  // String | The Movie id

            try
            {
                inline_response_200_4 result = apiInstance.qoutesByID(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MovieApi.qoutesByID: " + 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\MovieApi();
$apiecoKey = apiecoKey_example; // String | 
$id = id_example; // String | The Movie id

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

# 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::MovieApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = id_example; # String | The Movie id

eval { 
    my $result = $api_instance->qoutesByID(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MovieApi->qoutesByID: $@\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.MovieApi()
apiecoKey = apiecoKey_example # String | 
id = id_example # String | The Movie id

try: 
    api_response = api_instance.qoutes_by_id(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MovieApi->qoutesByID: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
The Movie id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


Quote

allquotes

List of all movie quotes


/quote

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/LOTR/quote"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.QuoteApi;

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

public class QuoteApiExample {

    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");

        QuoteApi apiInstance = new QuoteApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[inline_response_200_6] result = apiInstance.allquotes(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#allquotes");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.QuoteApi;

public class QuoteApiExample {

    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[inline_response_200_6] result = apiInstance.allquotes(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#allquotes");
            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"];

String *apiecoKey = apiecoKey_example; // 

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

[apiInstance allquotesWith:apiecoKey
              completionHandler: ^(array[inline_response_200_6] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LordsOfTheRingsApiDocumentation_ = require('_lords_of_the_rings_api_documentation_');
var defaultClient = LordsOfTheRingsApiDocumentation_.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 LordsOfTheRingsApiDocumentation_.QuoteApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class allquotesExample
    {
        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 QuoteApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                array[inline_response_200_6] result = apiInstance.allquotes(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling QuoteApi.allquotes: " + 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\QuoteApi();
$apiecoKey = apiecoKey_example; // String | 

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

# 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::QuoteApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->allquotes(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QuoteApi->allquotes: $@\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.QuoteApi()
apiecoKey = apiecoKey_example # String | 

try: 
    api_response = api_instance.allquotes(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->allquotes: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


quoteByID

Request one specific movie quote


/quote/{id}

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/LOTR/quote/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.QuoteApi;

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

public class QuoteApiExample {

    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");

        QuoteApi apiInstance = new QuoteApi();
        String apiecoKey = apiecoKey_example; // String | 
        String id = id_example; // String | The Movie id
        try {
            inline_response_200_4 result = apiInstance.quoteByID(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#quoteByID");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.QuoteApi;

public class QuoteApiExample {

    public static void main(String[] args) {
        QuoteApi apiInstance = new QuoteApi();
        String apiecoKey = apiecoKey_example; // String | 
        String id = id_example; // String | The Movie id
        try {
            inline_response_200_4 result = apiInstance.quoteByID(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QuoteApi#quoteByID");
            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"];

String *apiecoKey = apiecoKey_example; // 
String *id = id_example; // The Movie id

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

[apiInstance quoteByIDWith:apiecoKey
    id:id
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LordsOfTheRingsApiDocumentation_ = require('_lords_of_the_rings_api_documentation_');
var defaultClient = LordsOfTheRingsApiDocumentation_.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 LordsOfTheRingsApiDocumentation_.QuoteApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = id_example; // {String} The Movie id


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

namespace Example
{
    public class quoteByIDExample
    {
        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 QuoteApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = id_example;  // String | The Movie id

            try
            {
                inline_response_200_4 result = apiInstance.quoteByID(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling QuoteApi.quoteByID: " + 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\QuoteApi();
$apiecoKey = apiecoKey_example; // String | 
$id = id_example; // String | The Movie id

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

# 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::QuoteApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = id_example; # String | The Movie id

eval { 
    my $result = $api_instance->quoteByID(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QuoteApi->quoteByID: $@\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.QuoteApi()
apiecoKey = apiecoKey_example # String | 
id = id_example # String | The Movie id

try: 
    api_response = api_instance.quote_by_id(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QuoteApi->quoteByID: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
The Movie id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input