Sun feed client

This commit is contained in:
2020-08-11 04:03:56 +05:00
parent 5df4011f13
commit 9585edb0b7

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Services\Feeds;
use Illuminate\Support\Facades\Http;
class SunFeed
{
/**
* Latest articles published by sun. An Alternative to rss
*
* @return array
*/
public function get() : array
{
return Http::get("https://sun.mv/news?page=1&pagination=true")
->json()["data"];
}
}