Open 3gHub opened 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');
$response = $newsapi->getTopHeadlines($country='us', $category='health');
But it is not working.
$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.