TVMaze API

People

personById

Get person information


/people/{id}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/tvmaze/people/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PeopleApi;

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

public class PeopleApiExample {

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

        PeopleApi apiInstance = new PeopleApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | person id
        try {
            inline_response_200_1 result = apiInstance.personById(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PeopleApi#personById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PeopleApi;

public class PeopleApiExample {

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

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

// Get person information 
[apiInstance personByIdWith:apiecoKey
    id:id
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TvMazeApi_ = require('_tv_maze_api__');
var defaultClient = TvMazeApi_.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 TvMazeApi_.PeopleApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 8.14; // {BigDecimal} person id


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

namespace Example
{
    public class personByIdExample
    {
        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 PeopleApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 8.14;  // BigDecimal | person id

            try
            {
                // Get person information 
                inline_response_200_1 result = apiInstance.personById(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PeopleApi.personById: " + 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\PeopleApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 8.14; // BigDecimal | person id

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

# 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::PeopleApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 8.14; # BigDecimal | person id

eval { 
    my $result = $api_instance->personById(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PeopleApi->personById: $@\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.PeopleApi()
apiecoKey = apiecoKey_example # String | 
id = 8.14 # BigDecimal | person id

try: 
    # Get person information 
    api_response = api_instance.person_by_id(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PeopleApi->personById: %s\n" % e)

Parameters

Path parameters
Name Description
id*
BigDecimal
person id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


Schedule

schedule

Get the TV schedule


/schedule

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/tvmaze/schedule?country=&date=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ScheduleApi;

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

public class ScheduleApiExample {

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

        ScheduleApi apiInstance = new ScheduleApi();
        String apiecoKey = apiecoKey_example; // String | 
        String country = country_example; // String | an ISO country code
        String date = date_example; // String | an ISO formatted date
        String filter = filter_example; // String | Whether to show primetime shows only
        try {
            inline_response_200_4 result = apiInstance.schedule(apiecoKey, country, date, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScheduleApi#schedule");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ScheduleApi;

public class ScheduleApiExample {

    public static void main(String[] args) {
        ScheduleApi apiInstance = new ScheduleApi();
        String apiecoKey = apiecoKey_example; // String | 
        String country = country_example; // String | an ISO country code
        String date = date_example; // String | an ISO formatted date
        String filter = filter_example; // String | Whether to show primetime shows only
        try {
            inline_response_200_4 result = apiInstance.schedule(apiecoKey, country, date, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScheduleApi#schedule");
            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 *country = country_example; // an ISO country code (optional)
String *date = date_example; // an ISO formatted date (optional)
String *filter = filter_example; // Whether to show primetime shows only (optional)

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

// Get the TV schedule 
[apiInstance scheduleWith:apiecoKey
    country:country
    date:date
    filter:filter
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TvMazeApi_ = require('_tv_maze_api__');
var defaultClient = TvMazeApi_.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 TvMazeApi_.ScheduleApi()

var apiecoKey = apiecoKey_example; // {String} 

var opts = { 
  'country': country_example, // {String} an ISO country code
  'date': date_example, // {String} an ISO formatted date
  'filter': filter_example // {String} Whether to show primetime shows only
};

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

namespace Example
{
    public class scheduleExample
    {
        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 ScheduleApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var country = country_example;  // String | an ISO country code (optional) 
            var date = date_example;  // String | an ISO formatted date (optional) 
            var filter = filter_example;  // String | Whether to show primetime shows only (optional) 

            try
            {
                // Get the TV schedule 
                inline_response_200_4 result = apiInstance.schedule(apiecoKey, country, date, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ScheduleApi.schedule: " + 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\ScheduleApi();
$apiecoKey = apiecoKey_example; // String | 
$country = country_example; // String | an ISO country code
$date = date_example; // String | an ISO formatted date
$filter = filter_example; // String | Whether to show primetime shows only

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

# 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::ScheduleApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $country = country_example; # String | an ISO country code
my $date = date_example; # String | an ISO formatted date
my $filter = filter_example; # String | Whether to show primetime shows only

eval { 
    my $result = $api_instance->schedule(apiecoKey => $apiecoKey, country => $country, date => $date, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ScheduleApi->schedule: $@\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.ScheduleApi()
apiecoKey = apiecoKey_example # String | 
country = country_example # String | an ISO country code (optional)
date = date_example # String | an ISO formatted date (optional)
filter = filter_example # String | Whether to show primetime shows only (optional)

try: 
    # Get the TV schedule 
    api_response = api_instance.schedule(apiecoKey, country=country, date=date, filter=filter)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ScheduleApi->schedule: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
country
String
an ISO country code
date
String
an ISO formatted date
filter
String
Whether to show primetime shows only

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


SearchPeople

searchPeople

search for people


/search/people

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/tvmaze/search/people?q="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SearchPeopleApi;

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

public class SearchPeopleApiExample {

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

        SearchPeopleApi apiInstance = new SearchPeopleApi();
        String apiecoKey = apiecoKey_example; // String | 
        String q = q_example; // String | person name
        try {
            inline_response_200_3 result = apiInstance.searchPeople(apiecoKey, q);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SearchPeopleApi#searchPeople");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SearchPeopleApi;

public class SearchPeopleApiExample {

    public static void main(String[] args) {
        SearchPeopleApi apiInstance = new SearchPeopleApi();
        String apiecoKey = apiecoKey_example; // String | 
        String q = q_example; // String | person name
        try {
            inline_response_200_3 result = apiInstance.searchPeople(apiecoKey, q);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SearchPeopleApi#searchPeople");
            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 *q = q_example; // person name

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

// search for people 
[apiInstance searchPeopleWith:apiecoKey
    q:q
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TvMazeApi_ = require('_tv_maze_api__');
var defaultClient = TvMazeApi_.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 TvMazeApi_.SearchPeopleApi()

var apiecoKey = apiecoKey_example; // {String} 

var q = q_example; // {String} person name


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

namespace Example
{
    public class searchPeopleExample
    {
        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 SearchPeopleApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var q = q_example;  // String | person name

            try
            {
                // search for people 
                inline_response_200_3 result = apiInstance.searchPeople(apiecoKey, q);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SearchPeopleApi.searchPeople: " + 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\SearchPeopleApi();
$apiecoKey = apiecoKey_example; // String | 
$q = q_example; // String | person name

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

# 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::SearchPeopleApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $q = q_example; # String | person name

eval { 
    my $result = $api_instance->searchPeople(apiecoKey => $apiecoKey, q => $q);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SearchPeopleApi->searchPeople: $@\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.SearchPeopleApi()
apiecoKey = apiecoKey_example # String | 
q = q_example # String | person name

try: 
    # search for people 
    api_response = api_instance.search_people(apiecoKey, q)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SearchPeopleApi->searchPeople: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
q*
String
person name
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


SearchShow

searchShow

Search For Shows


/search/shows

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/tvmaze/search/shows?q="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SearchShowApi;

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

public class SearchShowApiExample {

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

        SearchShowApi apiInstance = new SearchShowApi();
        String apiecoKey = apiecoKey_example; // String | 
        String q = q_example; // String | show name
        try {
            inline_response_200_2 result = apiInstance.searchShow(apiecoKey, q);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SearchShowApi#searchShow");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SearchShowApi;

public class SearchShowApiExample {

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

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

// Search For Shows 
[apiInstance searchShowWith:apiecoKey
    q:q
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TvMazeApi_ = require('_tv_maze_api__');
var defaultClient = TvMazeApi_.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 TvMazeApi_.SearchShowApi()

var apiecoKey = apiecoKey_example; // {String} 

var q = q_example; // {String} show name


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

namespace Example
{
    public class searchShowExample
    {
        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 SearchShowApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var q = q_example;  // String | show name

            try
            {
                // Search For Shows 
                inline_response_200_2 result = apiInstance.searchShow(apiecoKey, q);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SearchShowApi.searchShow: " + 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\SearchShowApi();
$apiecoKey = apiecoKey_example; // String | 
$q = q_example; // String | show name

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

# 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::SearchShowApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $q = q_example; # String | show name

eval { 
    my $result = $api_instance->searchShow(apiecoKey => $apiecoKey, q => $q);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SearchShowApi->searchShow: $@\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.SearchShowApi()
apiecoKey = apiecoKey_example # String | 
q = q_example # String | show name

try: 
    # Search For Shows 
    api_response = api_instance.search_show(apiecoKey, q)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SearchShowApi->searchShow: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
q*
String
show name
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


Show

showById

Get show information


/shows/{id}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/tvmaze/shows/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ShowApi;

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

public class ShowApiExample {

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

        ShowApi apiInstance = new ShowApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | show id
        try {
            inline_response_200 result = apiInstance.showById(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShowApi#showById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ShowApi;

public class ShowApiExample {

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

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

// Get show information 
[apiInstance showByIdWith:apiecoKey
    id:id
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TvMazeApi_ = require('_tv_maze_api__');
var defaultClient = TvMazeApi_.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 TvMazeApi_.ShowApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 8.14; // {BigDecimal} show id


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

namespace Example
{
    public class showByIdExample
    {
        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 ShowApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 8.14;  // BigDecimal | show id

            try
            {
                // Get show information 
                inline_response_200 result = apiInstance.showById(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ShowApi.showById: " + 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\ShowApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 8.14; // BigDecimal | show id

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

# 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::ShowApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 8.14; # BigDecimal | show id

eval { 
    my $result = $api_instance->showById(apiecoKey => $apiecoKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ShowApi->showById: $@\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.ShowApi()
apiecoKey = apiecoKey_example # String | 
id = 8.14 # BigDecimal | show id

try: 
    # Get show information 
    api_response = api_instance.show_by_id(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ShowApi->showById: %s\n" % e)

Parameters

Path parameters
Name Description
id*
BigDecimal
show id
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input