<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: bearerAuth
$config = Tinq\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Tinq\Api\Scraper(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$accept = application/json; // string
$body = array('key' => new \stdClass); // object
try {
$apiInstance->extractArticle($accept, $body);
} catch (Exception $e) {
echo 'Exception when calling Scraper->extractArticle: ', $e->getMessage(), PHP_EOL;
}