Blog page added

This commit is contained in:
Olu Amey
2021-09-19 16:23:46 -04:00
parent ffcf8593b5
commit 9420c6c1af
8 changed files with 5479 additions and 5300 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
namespace App\Services;
use GuzzleHttp\Client as HTTPClient;
class WpContentsClient
{
public static function serviceGetBlogItems($apiEndpointsUrl)
{
$client = new HTTPClient();
$response = $client->request(
'GET',
"{$apiEndpointsUrl}/wordpress-data"
);
return json_decode($response->getBody());
}
}