protected function authenticate()
    {
        if ((!$this->storage->get('access_token'))) {
            try {
                $this->getAccessToken();
            } catch(\Dropbox\Exception $e) {
                $this->getRequestToken();
                $this->authorise();
            }
        }
    }
protected function authenticate()
    {
        if ((!$this->storage->get('access_token'))) {
            try {
                $this->getAccessToken();
            } catch(\Dropbox\Exception $e) {
                $this->getRequestToken();
                $this->authorise();
            }
        }
    }
protected function authenticate ( ) { if ( ( ! $ this -> storage -> get ( 'access_token' ) ) ) { try { $ this -> getAccessToken ( ) ; } catch ( \ Dropbox \ Exception $ e ) { $ this -> getRequestToken ( ) ; $ this -> authorise ( ) ; } } }
Authenticate using 3-legged OAuth flow, firstly
checking we don't already have tokens to use
@return void
Authenticate using 3 - legged OAuth flow firstly checking we don t already have tokens to use