public function checkAccessToken($access_token = null)
    {
        $token = is_null($access_token) ? $this->access_token : $access_token;
        if (is_null($token)) return false;

        $rs = $this->api('getUserSettings', array('access_token' => $token));
        return isset($rs['response']);
    }
public function checkAccessToken($access_token = null)
    {
        $token = is_null($access_token) ? $this->access_token : $access_token;
        if (is_null($token)) return false;

        $rs = $this->api('getUserSettings', array('access_token' => $token));
        return isset($rs['response']);
    }
public function checkAccessToken ( $ access_token = null ) { $ token = is_null ( $ access_token ) ? $ this -> access_token : $ access_token ; if ( is_null ( $ token ) ) return false ; $ rs = $ this -> api ( 'getUserSettings' , array ( 'access_token' => $ token ) ) ; return isset ( $ rs [ 'response' ] ) ; }
Check for validity access token.
@param   string $access_token
@return  bool
Check for validity access token .