Метод |
Описание |
|
get ( $method, $params = [] ) |
|
|
getAccessToken ( ) |
|
|
getAuthorizeUrl ( integer $clientId, string $redirectUri, string $responseType = 'code' ) : string |
First step - get OAuth authorization url |
|
getFormat ( ) |
|
|
login ( $accessToken = null ) |
|
|
post ( $method, $params = '' ) |
|
|
put ( $method, $params = '' ) |
|
|
requestAccessToken ( integer $clientId, string $secretKey, string $code, string $redirectUri ) : mixed |
Second step - request an access token by OAuth2 code returned from authorization url |
|
setAccessToken ( $accessToken ) |
|
|
setFormat ( $format ) |
|
|