PHP Class SlackOAuthService

Inheritance: extends EOAuth2Service
Afficher le fichier Open project: nodge/yii-eauth

Protected Properties

Свойство Type Description
$client_id
$client_secret
$errorAccessDeniedCode
$jsArguments
$name
$providerOptions
$scope
$team
$title
$type

Méthodes protégées

Méthode Description
fetchAttributes ( )
fetchJsonError ( stdClass $json ) : array Returns the error info from json.
getAccessToken ( $code )
getCodeUrl ( string $redirect_uri ) : string Returns the url to request to get OAuth2 code.
getSignedRequestFields ( ) : array Returns fields required for signed request.
initRequest ( string $url, array $options = [] ) : cURL Add User-Agent header

Method Details

fetchAttributes() protected méthode

protected fetchAttributes ( )

fetchJsonError() protected méthode

Returns the error info from json.
protected fetchJsonError ( stdClass $json ) : array
$json stdClass the json response.
Résultat array the error array with 2 keys: code and message. Should be null if no errors.

getAccessToken() protected méthode

protected getAccessToken ( $code )

getCodeUrl() protected méthode

Returns the url to request to get OAuth2 code.
protected getCodeUrl ( string $redirect_uri ) : string
$redirect_uri string url to redirect after user confirmation.
Résultat string url to request.

getSignedRequestFields() protected méthode

Used in {@link makeSignedRequest}.
protected getSignedRequestFields ( ) : array
Résultat array

initRequest() protected méthode

Add User-Agent header
protected initRequest ( string $url, array $options = [] ) : cURL
$url string
$options array
Résultat cURL

Property Details

$client_id protected_oe property

protected $client_id

$client_secret protected_oe property

protected $client_secret

$errorAccessDeniedCode protected_oe property

protected $errorAccessDeniedCode

$jsArguments protected_oe property

protected $jsArguments

$name protected_oe property

protected $name

$providerOptions protected_oe property

protected $providerOptions

$scope protected_oe property

protected $scope

$team protected_oe property

protected $team

$title protected_oe property

protected $title

$type protected_oe property

protected $type