Skip to content
Andrea Zoellner edited this page Jul 30, 2015 · 2 revisions

Crew\Unsplash\Provider

  • Class name: Provider
  • Namespace: Crew\Unsplash
  • Parent class: League\OAuth2\Client\Provider\AbstractProvider

Properties

$authorizationHeader

public string $authorizationHeader = 'Bearer'

The basic authorization header is a bearer token.

  • Visibility: public

$scopes

public array $scopes = array('public')

Define the default scope of the wrapper.

  • Visibility: public

Methods

urlAuthorize

string Crew\Unsplash\Provider::urlAuthorize()

Define the authorize url.

  • Visibility: public

urlAccessToken

string Crew\Unsplash\Provider::urlAccessToken()

Define the access token url.

  • Visibility: public

urlUserDetails

string Crew\Unsplash\Provider::urlUserDetails(\League\OAuth2\Client\Token\AccessToken $token)

Define the current user details url.

  • Visibility: public

Arguments

  • $token League\OAuth2\Client\Token\AccessToken

userDetails

\Crew\Unsplash\stdClass Crew\Unsplash\Provider::userDetails(\Crew\Unsplash\GuzzleHttp\Psr7\Response $response, \League\OAuth2\Client\Token\AccessToken $token)
  • Visibility: public

Arguments

  • $response Crew\Unsplash\GuzzleHttp\Psr7\Response - <p>Http response</p>
  • $token League\OAuth2\Client\Token\AccessToken - <p>Access token information of the current user</p>

userUid

string Crew\Unsplash\Provider::userUid(\Crew\Unsplash\GuzzleHttp\Psr7\Response $response, \League\OAuth2\Client\Token\AccessToken $token)
  • Visibility: public

Arguments

  • $response Crew\Unsplash\GuzzleHttp\Psr7\Response - <p>Http response</p>
  • $token League\OAuth2\Client\Token\AccessToken - <p>Access token information of the current user</p>

Api Index

Clone this wiki locally