mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
add get state
This commit is contained in:
parent
b3ab9e468c
commit
ab5e05485e
@ -21,7 +21,11 @@ final class SdkWrapper implements QuickbooksInterface
|
|||||||
public function getAuthorizationUrl() : string
|
public function getAuthorizationUrl() : string
|
||||||
{
|
{
|
||||||
return ($this->sdk->getOAuth2LoginHelper())->getAuthorizationCodeURL();
|
return ($this->sdk->getOAuth2LoginHelper())->getAuthorizationCodeURL();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getState() : string
|
||||||
|
{
|
||||||
|
return ($this->sdk->getOAuth2LoginHelper())->getState();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getAccessToken() : array
|
public function getAccessToken() : array
|
||||||
@ -30,7 +34,7 @@ final class SdkWrapper implements QuickbooksInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getRefreshToken(): array{
|
public function getRefreshToken(): array{
|
||||||
return $this->gettokens();
|
return $this->getTokens();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function accessToken(string $code, string $realm) : array
|
public function accessToken(string $code, string $realm) : array
|
||||||
|
Loading…
x
Reference in New Issue
Block a user