public function getAccessToken($accessTokenId)
    {
        $result = DB::table('oauth_session_access_tokens')
                    ->where('id', $accessTokenId)
                    ->first();

        return (is_null($result)) ? false : (array) $result;
    }
public function getAccessToken($accessTokenId)
    {
        $result = DB::table('oauth_session_access_tokens')
                    ->where('id', $accessTokenId)
                    ->first();

        return (is_null($result)) ? false : (array) $result;
    }
public function getAccessToken ( $ accessTokenId ) { $ result = DB :: table ( 'oauth_session_access_tokens' ) -> where ( 'id' , $ accessTokenId ) -> first ( ) ; return ( is_null ( $ result ) ) ? false : ( array ) $ result ; }
Get an access token by ID

Example SQL query:

<code>
SELECT * FROM `oauth_session_access_tokens` WHERE `id` = :accessTokenId
</code>

Expected response:

<code>
array(
'id' =>  (int),
'session_id' =>  (int),
'access_token'   =>  (string),
'access_token_expires'   =>  (int)
)
</code>

@param  int    $accessTokenId The access token ID
@return array
Get an access token by ID