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
|