barisesen / hurriyet
Hurriyet public api client for PHP
1.0.0
2017-07-26 07:23 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-10-27 03:42:02 UTC
README
Hürriyet Api client for Php
Installation
Composer json file:
{ "require": { "barisesen/hurriyet": "^1" } }
After run the install command.
$ composer install
OR run the following command directly.
$ composer require barisesen/hurriyet
Examples
Usage
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);
Licence
The MIT License (MIT). Please see License File for more information.
Contributing
- 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
Contributors
- barisesen barisesen.com Barış Esen - creator, maintainer