Our API
We provide an API that you, the customer, can use to integrate boostcontent.com into your own custom solution. For example, let’s say you have a big web shop with thousands of products added each month. With our API installed, you can easily order content, retrieve it and publish it from within your own system.
Start off by downloading our simple API php library here
include('MeritCrowdApi.php');
$api = new MeritCrowdApi(
"{API_KEY}",
"{API_SECRET}",
"http://www.boostcontent.com/api/v2/"
);
// Fetch the available languages and prices.
$languages = $api->getRealms();
// Create a new order and name it, specifying which language and team to use.
$jobId = $api->createJob([
'jobName' => 'Example Order',
'realmId' => 69, // Language
'teamId' => 11 // Team
]);
$api->createTask($jobId, [
'Subject' => 'Write a text about the iPhone 6',
'wordCountMin' => 300,
'wordCountMax' => 350,
'Keywords' => 'iPhone 6',
'Links' => [
[
'Link URL' => 'http://example.com',
'Link Text' => 'iPhone'
]
]
]);
The example above shows a simple order with one task in it. When creating an order, you must specify which language and team to use. Note that different team and language pairings vary in price. Below, you can see how to fetch all tasks, view their status, and download finished content.
include('MeritCrowdApi.php');
$api = new MeritCrowdApi(
"{API_KEY}",
"{API_SECRET}",
"http://www.boostcontent.com/api/v2/"
);
$jobs = $api->getJobs();
foreach ($jobs as $job) {
$tasks = $api->getTasks($job->jobId);
foreach ($tasks as $task) {
if ($task->status == "finished") {
var_dump($task->content);
}
}
}
The API is intended to be simple and reliable and if you have any questions about it or if you need help integrating it into your system please reach out to us in the live chat and you will be able to talk to a developer.