By Goodwish Support: 087 057-1581 https://www.goodwishmatyila.co.za
composer require newsorg/commercial This package is not auto-updated. Please set up the GitHub Service Hook for Packagist so that it gets updated whenever you push! News API Commercial PHP Library.
cUrl Extensions
PHP >= 7.0
#Require the class
require_once 'News.php';
use News\Resources as Articles;
class Latest extends Articles{ public function __construct(){ parent::__construct(); } }
$queryOptionsEverything = Array( "apiKey"=>"your-api-key", "from" => "2008-03-02", "to"=>"2018-08-05", "query" => "news-south-africa", "language" => "en" );
Pass the options to setEverything with argument
Latest::setEverything($queryOptionsEverything);
$queryOptionsSources = Array( "apiKey"=>"your-api-key", "from" => "2008-03-02", "to"=>"2008-03-05", "query" => "soccer", "country" => "za", "language" => "en" );
Pass the options to setSources with argument
Latest::setSources($queryOptionsSources);
$queryOptionsHeadlines = Array( "apiKey"=>"your-api-key", "from" => "2008-03-02", "to"=>"2008-03-05", "query" => "soccer", "country" => "za", "language" => "en" );
Pass the options to setHeadlines with argument
Latest::setHeadlines($queryOptionsHeadlines);