public function request($url, $options)
    {
        $this->url = $url;
        $this->options = array_replace_recursive($this->settings['defaults'], $options);

        try {
            return $this->handleRequest();
        } catch (TokenExpiredException $e) {
            $this->refresh();

            return $this->handleRequest();
        }
    }
public function request($url, $options)
    {
        $this->url = $url;
        $this->options = array_replace_recursive($this->settings['defaults'], $options);

        try {
            return $this->handleRequest();
        } catch (TokenExpiredException $e) {
            $this->refresh();

            return $this->handleRequest();
        }
    }
public function request ( $ url , $ options ) { $ this -> url = $ url ; $ this -> options = array_replace_recursive ( $ this -> settings [ 'defaults' ] , $ options ) ; try { return $ this -> handleRequest ( ) ; } catch ( TokenExpiredException $ e ) { $ this -> refresh ( ) ; return $ this -> handleRequest ( ) ; } }
Try requesting token, if token expired try refreshing token.

@param string $url
@param array  $options

@return mixed
Try requesting token if token expired try refreshing token .