[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/carlos-mg89/oauth/src/OAuth/OAuth1/Service/ -> AbstractService.php (summary)

(no description)

File Size: 313 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 14 functions

  __construct()
  requestRequestToken()
  getAuthorizationUri()
  requestAccessToken()
  refreshAccessToken()
  request()
  getExtraOAuthHeaders()
  getExtraApiHeaders()
  buildAuthorizationHeaderForTokenRequest()
  buildAuthorizationHeaderForAPIRequest()
  getBasicAuthorizationHeaderInfo()
  generateNonce()
  getSignatureMethod()
  getVersion()

Functions
Functions that are not part of a class:

__construct(CredentialsInterface $credentials,ClientInterface $httpClient,TokenStorageInterface $storage,SignatureInterface $signature,?UriInterface $baseApiUri = null)   X-Ref
{@inheritdoc}


requestRequestToken()   X-Ref
{@inheritdoc}


getAuthorizationUri(array $additionalParameters = [])   X-Ref
{@inheritdoc}


requestAccessToken($token, $verifier, $tokenSecret = null)   X-Ref
{@inheritdoc}


refreshAccessToken(TokenInterface $token)   X-Ref
Refreshes an OAuth1 access token.

return: TokenInterface $token

request($path, $method = 'GET', $body = null, array $extraHeaders = [])   X-Ref
Sends an authenticated API request to the path provided.
If the path provided is not an absolute URI, the base API Uri (must be passed into constructor) will be used.

param: string|UriInterface $path
param: string              $method       HTTP method
param: array               $body         Request body if applicable (key/value pairs)
param: array               $extraHeaders Extra headers if applicable.
return: string

getExtraOAuthHeaders()   X-Ref
Return any additional headers always needed for this service implementation's OAuth calls.

return: array

getExtraApiHeaders()   X-Ref
Return any additional headers always needed for this service implementation's API calls.

return: array

buildAuthorizationHeaderForTokenRequest(array $extraParameters = [])   X-Ref
Builds the authorization header for getting an access or request token.

return: string

buildAuthorizationHeaderForAPIRequest($method,UriInterface $uri,TokenInterface $token,$bodyParams = null)   X-Ref
Builds the authorization header for an authenticated API request.

param: string         $method
param: UriInterface   $uri        The uri the request is headed
param: array          $bodyParams Request body if applicable (key/value pairs)
return: string

getBasicAuthorizationHeaderInfo()   X-Ref
Builds the authorization header array.

return: array

generateNonce($length = 32)   X-Ref
Pseudo random string generator used to build a unique string to sign each request.

param: int $length
return: string

getSignatureMethod()   X-Ref

return: string

getVersion()   X-Ref
This returns the version used in the authorization header of the requests.

return: string



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1