PHP 클래스 SlackOAuthService

상속: extends EOAuth2Service
파일 보기 프로젝트 열기: nodge/yii-eauth

보호된 프로퍼티들

프로퍼티 타입 설명
$client_id
$client_secret
$errorAccessDeniedCode
$jsArguments
$name
$providerOptions
$scope
$team
$title
$type

보호된 메소드들

메소드 설명
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

메소드 상세

fetchAttributes() 보호된 메소드

protected fetchAttributes ( )

fetchJsonError() 보호된 메소드

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

getAccessToken() 보호된 메소드

protected getAccessToken ( $code )

getCodeUrl() 보호된 메소드

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

getSignedRequestFields() 보호된 메소드

Used in {@link makeSignedRequest}.
protected getSignedRequestFields ( ) : array
리턴 array

initRequest() 보호된 메소드

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

프로퍼티 상세

$client_id 보호되어 있는 프로퍼티

protected $client_id

$client_secret 보호되어 있는 프로퍼티

protected $client_secret

$errorAccessDeniedCode 보호되어 있는 프로퍼티

protected $errorAccessDeniedCode

$jsArguments 보호되어 있는 프로퍼티

protected $jsArguments

$name 보호되어 있는 프로퍼티

protected $name

$providerOptions 보호되어 있는 프로퍼티

protected $providerOptions

$scope 보호되어 있는 프로퍼티

protected $scope

$team 보호되어 있는 프로퍼티

protected $team

$title 보호되어 있는 프로퍼티

protected $title

$type 보호되어 있는 프로퍼티

protected $type