Skip to content

Commit

Permalink
Merge pull request #1 from timdegroote/adjust-url-to-focus
Browse files Browse the repository at this point in the history
Change teamleader.eu urls to focus.teamleader.eu
  • Loading branch information
justijndepover authored Jun 9, 2021
2 parents b415668 + 7219d3d commit 8cabdc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions src/Teamleader.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Teamleader
/**
* @var string
*/
private $baseUrl = 'https://app.teamleader.eu';
private $baseUrl = 'https://focus.teamleader.eu';

/**
* @var string
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8cabdc5

Please sign in to comment.