From 82a6cade868b6410d50c233181173bf87c900cec Mon Sep 17 00:00:00 2001 From: Mohamed Jinas Date: Sun, 9 Aug 2020 03:51:44 +0500 Subject: [PATCH] Rss client --- app/Services/Client.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 app/Services/Client.php diff --git a/app/Services/Client.php b/app/Services/Client.php new file mode 100644 index 0000000..9b6d382 --- /dev/null +++ b/app/Services/Client.php @@ -0,0 +1,25 @@ +ok()) + { + throw new \Exception("Error getting the rss feed"); + } + + return json_decode(json_encode(simplexml_load_string($response->body())), true); + } +} \ No newline at end of file