barisesen/hurriyet

Hurriyet public api client for PHP

1.0.0 2017-07-26 07:23 UTC

This package is not auto-updated.

Last update: 2024-10-27 03:42:02 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

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

Hurriyet API Client Example

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

  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