PHP code example of mh / tenderseo-api

1. Go to this page and download the library: Download mh/tenderseo-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mh / tenderseo-api example snippets



use TenderSEO\Client;

 = $client->randomArticle();
var_dump($r);


use TenderSEO\Client;

$client = new Client();


use TenderSEO\Client;

$client = new Client([
    'key' => 'YOUR KEY',
]);


use TenderSEO\Client;

$client = new Client();

$client->signup([
    'email' => 'YOUR EMAIL',
    'name' => 'YOUR NAME',
]);


use TenderSEO\Client;

$client = new Client([
    'key' => 'YOUR KEY',
]);

$client->status();


use TenderSEO\Client;

$client = new Client([
    'key' => 'YOUR KEY',
]);

$client->randomArticle();


use TenderSEO\Client;

$client = new Client([
    'key' => 'YOUR KEY',
]);

$client->createArticle([
    'language' => 'english',
    'keywords' => 'car, blue',
    'service' => 'article', // article or translation
    'words' => 50,
    'tag' => 'test',
    'test' => true, // the order will not be processed
]);


use TenderSEO\Client;

$client = new Client([
    'key' => 'YOUR KEY',
]);

$client->articles([
    'language' => 'english',
    'tag' => 'test',
    'from' => '2019-01-01 00:00:00',
]);