jcobhams / newsapi-php

A PHP client for the News API (https://newsapi.org/docs/get-started)
MIT License
40 stars 21 forks source link

Get Top Headlines Params are not Working #3

Open 3gHub opened 2 years ago

3gHub commented 2 years ago

$newsapi->getTopHeadlines($q, $sources, $country, $category, $page_size, $page);

According to this I have Used like this in my code $response = $newsapi->getTopHeadlines($country='us', $category='health');

But it is not working.