feature(tags): added tags to pois

This commit is contained in:
Uther
2024-08-21 18:57:36 +02:00
parent 32fafa370c
commit 9a00582d44
5 changed files with 116 additions and 9 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Http\Services;
use Illuminate\Http\Client\PendingRequest;
use Illuminate\Support\Facades\Http;
class CaptianCosterApi
{
private readonly string $uri;
private readonly PendingRequest $client;
function __construct()
{
if(!($apiKey = env('CAPTAIN_COASTER_API_KEY'))) {
throw new \Exception('No API key found for Captain Coaster API');
}
$this->uri = 'https://captaincoaster.com/api/';
$this->client = Http::baseUrl($this->uri)->withHeaders([
'Authorization' => $apiKey
]);
}
}