Hurriyet
Hurriyet Public API wrapper for Humans
https://www.npmjs.com/package/hurriyet
Installation
Install using npm
npm install hurriyet
Usage
Get an API key from https://developers.hurriyet.com.tr
var Hurriyet = ;var h = 'api token';
Callback Function
var if (err) console.log(err); console.log(data);};
Articles
Get daily news
hArticles; // Get daily newshArticles; // Get top 4 daily newshArticles; // Get top 4 daily news' descriptions
Get single news from id
hArticles; // Get news from id = 40199111hArticles; // Get news' description from id = 40199111
Columns
Get columns
hColumns; // Get columnshColumns; // Get 4 columnshColumns; // Get 4 columns' writer and title
Get single column from id
hColumns; // Get column from id = 40190106hColumns; // Get column's text from id = 40190106
Date
h; // Get date - type RFC 1123
News Photo Gallery
Get galleries
hNewsPhotoGallery; // Get gallerieshNewsPhotoGallery; // Get 3 gallerieshNewsPhotoGallery; // Get galleries' url and title
Get single gallery from id
hNewsPhotoGallery; // Get gallery from id = 40190642hNewsPhotoGallery; // Get gallery's description from id = 40190642
Writers
Get Writers
hWriters; // Get writershWriters; // Get 3 writershWriters; // Get writers' fullname
Get single writer from id
hWriters; // Get writer from id = 55ea09f9f018fbaf449425c4hWriters; // Get writer's fullname from id = 55ea09f9f018fbaf449425c4
License
This is available as open source under the terms of the MIT License.