Файл: vendor/lusitanian/oauth/src/OAuth/OAuth1/Service/ServiceInterface.php
Строк: 110
<?php
namespace OAuthOAuth1Service;
use OAuthCommonConsumerCredentials;
use OAuthCommonStorageTokenStorageInterface;
use OAuthCommonTokenTokenInterface;
use OAuthCommonHttpClientClientInterface;
use OAuthCommonHttpUriUriInterface;
use OAuthCommonHttpExceptionTokenResponseException;
use OAuthCommonServiceServiceInterface as BaseServiceInterface;
use OAuthOAuth1SignatureSignatureInterface;
/**
* Defines the common methods across OAuth 1 services.
*/
interface ServiceInterface extends BaseServiceInterface
{
/**
* @param OAuthCommonConsumerCredentials $credentials
* @param OAuthCommonHttpClientClientInterface $httpClient
* @param OAuthCommonStorageTokenStorageInterface $storage
* @param OAuthOAuth1SignatureSignatureInterface $signature
* @param UriInterface|null $baseApiUri
* @abstract
*/
public function __construct(Credentials $credentials, ClientInterface $httpClient, TokenStorageInterface $storage, SignatureInterface $signature, UriInterface $baseApiUri = null);
/**
* Retrieves and stores/returns the OAuth1 request token.
*
* @abstract
* @return TokenInterface $token
* @throws TokenResponseException
*/
public function requestRequestToken();
/**
* Retrieves and stores/returns the OAuth1 access token after a successful authorization.
*
* @abstract
* @param string $token The request token from the callback.
* @param string $verifier
* @param string $tokenSecret
* @return TokenInterface $token
* @throws TokenResponseException
*/
public function requestAccessToken($token, $verifier, $tokenSecret);
/**
* @abstract
* @return UriInterface
*/
public function getRequestTokenEndpoint();
}