项目作者: barisesen

项目描述 :
Hürriyet Api client for Php
高级语言: PHP
项目地址: git://github.com/barisesen/Hurriyet-Php-Api-Client.git
创建时间: 2017-07-26T06:53:19Z
项目社区:https://github.com/barisesen/Hurriyet-Php-Api-Client

开源协议:MIT License

下载


Hürriyet Public Api

Latest Stable Version
Total Downloads
Latest Unstable Version
License

Hürriyet Api client for Php

Installation

Composer json file:

  1. {
  2. "require": {
  3. "barisesen/hurriyet": "^1"
  4. }
  5. }

After run the install command.

  1. $ composer install

OR run the following command directly.

  1. $ composer require barisesen/hurriyet

Examples

Hurriyet API Client Example

Usage

The following gateways are provided by this documentation:

  1. <?php
  2. require_once __DIR__ . '/vendor/autoload.php';
  3. use Esen\Hurriyet;
  4. // create a new client instance
  5. $hurriyet = new Hurriyet('your-hurriyet-api-token');
  6. // Filtered article list
  7. $arr = [
  8. 'select' => 'Title,Id',
  9. 'top' => '10'
  10. ];
  11. $data = $hurriyet->get('articles', $arr);
  12. // List id = 40530799 Article
  13. $arr = [
  14. 'id' => '40530799'
  15. ];
  16. $data = $hurriyet->get('articles', $arr);
  17. var_dump($data);

Licence

The MIT License (MIT). Please see License File for more information.

Contributing

  1. Fork it ( https://github.com/barisesen/Hurriyet-Php-Api-Client )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am ‘Add some feature’)
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors