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)