From 7219d3d5c6528ee03d02d13a8266e2c1740c16e7 Mon Sep 17 00:00:00 2001 From: Tim De Groote Date: Wed, 2 Jun 2021 14:27:03 +0200 Subject: [PATCH] Change teamleader.eu urls to focus.teamleader.eu --- README.md | 2 +- src/Teamleader.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b52cbb5..d5a0816 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ $expiresAt = $teamleader->getTokenExpiresAt(); ## Available methods -Note that your application should have the correct scopes enabled inside the [integration](https://marketplace.teamleader.eu/be/nl/ontwikkel/integraties) +Note that your application should have the correct scopes enabled inside the [integration](https://marketplace.focus.teamleader.eu/be/nl/ontwikkel/integraties) This application is in an early development stage. Therefore not all resources are available as props yet. (for example: `$teamleader->users->me`) In the meantime it's possible to fetch every resource available through the `get` and `post` methods: diff --git a/src/Teamleader.php b/src/Teamleader.php index d010f2d..62d64f3 100644 --- a/src/Teamleader.php +++ b/src/Teamleader.php @@ -20,7 +20,7 @@ class Teamleader /** * @var string */ - private $baseUrl = 'https://app.teamleader.eu'; + private $baseUrl = 'https://focus.teamleader.eu'; /** * @var string @@ -234,7 +234,7 @@ private function createRequest($method, $endpoint, $body = null, array $paramete private function buildUrl(string $endpoint): string { - return 'https://api.teamleader.eu/' . ltrim($endpoint, '/'); + return 'https://api.focus.teamleader.eu/' . ltrim($endpoint, '/'); } private function parseResponse(Response $response)