Financial Times API Documentation

Content

content

Get an item of content.


/content/{itemId}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/financial-times/content/{itemId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContentApi;

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

public class ContentApiExample {

    public static void main(String[] args) {
        
        ContentApi apiInstance = new ContentApi();
        String apiecoKey = apiecoKey_example; // String | 
        String itemId = itemId_example; // String | The id of the content
        try {
            apiInstance.content(apiecoKey, itemId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContentApi#content");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ContentApi;

public class ContentApiExample {

    public static void main(String[] args) {
        ContentApi apiInstance = new ContentApi();
        String apiecoKey = apiecoKey_example; // String | 
        String itemId = itemId_example; // String | The id of the content
        try {
            apiInstance.content(apiecoKey, itemId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContentApi#content");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *itemId = itemId_example; // The id of the content

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

[apiInstance contentWith:apiecoKey
    itemId:itemId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FinancialTimesApiDocumentation = require('financial_times_api_documentation');

var api = new FinancialTimesApiDocumentation.ContentApi()

var apiecoKey = apiecoKey_example; // {String} 

var itemId = itemId_example; // {String} The id of the content


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

namespace Example
{
    public class contentExample
    {
        public void main()
        {
            
            var apiInstance = new ContentApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var itemId = itemId_example;  // String | The id of the content

            try
            {
                apiInstance.content(apiecoKey, itemId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ContentApi.content: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ContentApi();
$apiecoKey = apiecoKey_example; // String | 
$itemId = itemId_example; // String | The id of the content

try {
    $api_instance->content($apiecoKey, $itemId);
} catch (Exception $e) {
    echo 'Exception when calling ContentApi->content: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ContentApi;

my $api_instance = WWW::SwaggerClient::ContentApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $itemId = itemId_example; # String | The id of the content

eval { 
    $api_instance->content(apiecoKey => $apiecoKey, itemId => $itemId);
};
if ($@) {
    warn "Exception when calling ContentApi->content: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ContentApi()
apiecoKey = apiecoKey_example # String | 
itemId = itemId_example # String | The id of the content

try: 
    api_instance.content(apiecoKey, itemId)
except ApiException as e:
    print("Exception when calling ContentApi->content: %s\n" % e)

Parameters

Path parameters
Name Description
itemId*
String
The id of the content
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - The resource exists and has been returned


EnrichedContent

enrichedContent

Get an item of enriched content.


/enrichedcontent/{itemId}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/financial-times/enrichedcontent/{itemId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.EnrichedContentApi;

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

public class EnrichedContentApiExample {

    public static void main(String[] args) {
        
        EnrichedContentApi apiInstance = new EnrichedContentApi();
        String apiecoKey = apiecoKey_example; // String | 
        String itemId = itemId_example; // String | The id of the content
        try {
            apiInstance.enrichedContent(apiecoKey, itemId);
        } catch (ApiException e) {
            System.err.println("Exception when calling EnrichedContentApi#enrichedContent");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.EnrichedContentApi;

public class EnrichedContentApiExample {

    public static void main(String[] args) {
        EnrichedContentApi apiInstance = new EnrichedContentApi();
        String apiecoKey = apiecoKey_example; // String | 
        String itemId = itemId_example; // String | The id of the content
        try {
            apiInstance.enrichedContent(apiecoKey, itemId);
        } catch (ApiException e) {
            System.err.println("Exception when calling EnrichedContentApi#enrichedContent");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *itemId = itemId_example; // The id of the content

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

[apiInstance enrichedContentWith:apiecoKey
    itemId:itemId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FinancialTimesApiDocumentation = require('financial_times_api_documentation');

var api = new FinancialTimesApiDocumentation.EnrichedContentApi()

var apiecoKey = apiecoKey_example; // {String} 

var itemId = itemId_example; // {String} The id of the content


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

namespace Example
{
    public class enrichedContentExample
    {
        public void main()
        {
            
            var apiInstance = new EnrichedContentApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var itemId = itemId_example;  // String | The id of the content

            try
            {
                apiInstance.enrichedContent(apiecoKey, itemId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling EnrichedContentApi.enrichedContent: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\EnrichedContentApi();
$apiecoKey = apiecoKey_example; // String | 
$itemId = itemId_example; // String | The id of the content

try {
    $api_instance->enrichedContent($apiecoKey, $itemId);
} catch (Exception $e) {
    echo 'Exception when calling EnrichedContentApi->enrichedContent: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::EnrichedContentApi;

my $api_instance = WWW::SwaggerClient::EnrichedContentApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $itemId = itemId_example; # String | The id of the content

eval { 
    $api_instance->enrichedContent(apiecoKey => $apiecoKey, itemId => $itemId);
};
if ($@) {
    warn "Exception when calling EnrichedContentApi->enrichedContent: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.EnrichedContentApi()
apiecoKey = apiecoKey_example # String | 
itemId = itemId_example # String | The id of the content

try: 
    api_instance.enriched_content(apiecoKey, itemId)
except ApiException as e:
    print("Exception when calling EnrichedContentApi->enrichedContent: %s\n" % e)

Parameters

Path parameters
Name Description
itemId*
String
The id of the content
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - The resource exists and has been returned


Notifications

notifications

Get a list of content that has been created, changed or deleted.


/content/notifications

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/financial-times/content/notifications"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NotificationsApi;

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

public class NotificationsApiExample {

    public static void main(String[] args) {
        
        NotificationsApi apiInstance = new NotificationsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200 result = apiInstance.notifications(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationsApi#notifications");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NotificationsApi;

public class NotificationsApiExample {

    public static void main(String[] args) {
        NotificationsApi apiInstance = new NotificationsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200 result = apiInstance.notifications(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationsApi#notifications");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

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

[apiInstance notificationsWith:apiecoKey
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FinancialTimesApiDocumentation = require('financial_times_api_documentation');

var api = new FinancialTimesApiDocumentation.NotificationsApi()

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.notifications(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class notificationsExample
    {
        public void main()
        {
            
            var apiInstance = new NotificationsApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                inline_response_200 result = apiInstance.notifications(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NotificationsApi.notifications: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\NotificationsApi();
$apiecoKey = apiecoKey_example; // String | 

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

my $api_instance = WWW::SwaggerClient::NotificationsApi->new();
my $apiecoKey = apiecoKey_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.NotificationsApi()
apiecoKey = apiecoKey_example # String | 

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

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - successfull


NotificationsPush

notificationsPush

Streaming notifications of content that has been created, changed or deleted


/content/notifications-push

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/financial-times/content/notifications-push"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NotificationsPushApi;

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

public class NotificationsPushApiExample {

    public static void main(String[] args) {
        
        NotificationsPushApi apiInstance = new NotificationsPushApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            apiInstance.notificationsPush(apiecoKey);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationsPushApi#notificationsPush");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NotificationsPushApi;

public class NotificationsPushApiExample {

    public static void main(String[] args) {
        NotificationsPushApi apiInstance = new NotificationsPushApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            apiInstance.notificationsPush(apiecoKey);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationsPushApi#notificationsPush");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

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

[apiInstance notificationsPushWith:apiecoKey
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FinancialTimesApiDocumentation = require('financial_times_api_documentation');

var api = new FinancialTimesApiDocumentation.NotificationsPushApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class notificationsPushExample
    {
        public void main()
        {
            
            var apiInstance = new NotificationsPushApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                apiInstance.notificationsPush(apiecoKey);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NotificationsPushApi.notificationsPush: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\NotificationsPushApi();
$apiecoKey = apiecoKey_example; // String | 

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

my $api_instance = WWW::SwaggerClient::NotificationsPushApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    $api_instance->notificationsPush(apiecoKey => $apiecoKey);
};
if ($@) {
    warn "Exception when calling NotificationsPushApi->notificationsPush: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.NotificationsPushApi()
apiecoKey = apiecoKey_example # String | 

try: 
    api_instance.notifications_push(apiecoKey)
except ApiException as e:
    print("Exception when calling NotificationsPushApi->notificationsPush: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Real time content notifications in SSE format are being sent to the client


Search_