Hürriyet Api client for Php
Composer json file:
{
"require": {
"barisesen/hurriyet": "^1"
}
}
After run the install command.
$ composer install
OR run the following command directly.
$ composer require barisesen/hurriyet
The following gateways are provided by this documentation:
<?php
require_once __DIR__ . '/vendor/autoload.php';
use Esen\Hurriyet;
// create a new client instance
$hurriyet = new Hurriyet('your-hurriyet-api-token');
// Filtered article list
$arr = [
'select' => 'Title,Id',
'top' => '10'
];
$data = $hurriyet->get('articles', $arr);
// List id = 40530799 Article
$arr = [
'id' => '40530799'
];
$data = $hurriyet->get('articles', $arr);
var_dump($data);
The MIT License (MIT). Please see License File for more information.
- Fork it ( https://github.com/barisesen/Hurriyet-Php-Api-Client )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- barisesen barisesen.com Barış Esen - creator, maintainer