File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ],
You can’t perform that action at this time.
0 commit comments