Skip to content

Commit 9601cda

Browse files
authored
fix: update ClickUp API URLs to use the new subdomain url (#1366)
1 parent 089b0ae commit 9601cda

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/ClickUp/Provider.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,26 @@ class Provider extends AbstractProvider
1010
{
1111
public const IDENTIFIER = 'CLICKUP';
1212

13+
protected const BASE_URL = 'https://api.clickup.com/api';
14+
1315
protected $scopes = ['profile'];
1416

1517
protected function getAuthUrl($state): string
1618
{
17-
return $this->buildAuthUrlFromBase('https://app.clickup.com/api', $state);
19+
return $this->buildAuthUrlFromBase(self::BASE_URL, $state);
1820
}
1921

2022
protected function getTokenUrl(): string
2123
{
22-
return 'https://app.clickup.com/api/v2/oauth/token';
24+
return self::BASE_URL.'/v2/oauth/token';
2325
}
2426

2527
/**
2628
* {@inheritdoc}
2729
*/
2830
protected function getUserByToken($token)
2931
{
30-
$response = $this->getHttpClient()->get('https://app.clickup.com/api/v2/user', [
32+
$response = $this->getHttpClient()->get(self::BASE_URL.'/v2/user', [
3133
RequestOptions::HEADERS => [
3234
'Authorization' => $token,
3335
],

0 commit comments

Comments
 (0)