Вход Регистрация
Файл: vendor/lusitanian/oauth/src/OAuth/OAuth2/Service/ServiceInterface.php
Строк: 78
<?php
namespace OAuthOAuth2Service;

use 
OAuthCommonConsumerCredentials;
use 
OAuthCommonStorageTokenStorageInterface;
use 
OAuthCommonTokenTokenInterface;
use 
OAuthCommonHttpClientClientInterface;
use 
OAuthCommonHttpExceptionTokenResponseException;
use 
OAuthCommonServiceServiceInterface as BaseServiceInterface;
use 
OAuthCommonHttpUriUriInterface;

/**
 * Defines the common methods across OAuth 2 services.
 */
interface ServiceInterface extends BaseServiceInterface
{
    
/**
     * Authorization methods for various services
     */
    
const AUTHORIZATION_METHOD_HEADER_OAUTH    0;
    const 
AUTHORIZATION_METHOD_HEADER_BEARER   1;
    const 
AUTHORIZATION_METHOD_QUERY_STRING    2;
    const 
AUTHORIZATION_METHOD_QUERY_STRING_V2 3;

    
/**
     * @param OAuthCommonConsumerCredentials $credentials
     * @param OAuthCommonHttpClientClientInterface $httpClient
     * @param OAuthCommonStorageTokenStorageInterface $storage
     * @param array $scopes
     * @param UriInterface|null $baseApiUri
     * @abstract
     */
    
public function __construct(Credentials $credentialsClientInterface $httpClientTokenStorageInterface $storage$scopes = array(), UriInterface $baseApiUri null);

    
/**
     * Retrieves and stores/returns the OAuth2 access token after a successful authorization.
     *
     * @abstract
     * @param string $code The access code from the callback.
     * @return TokenInterface $token
     * @throws TokenResponseException
     */
    
public function requestAccessToken($code);
}
Онлайн: 3
Реклама