src/Dropbox/Authentication/OAuth2Client.php
public function getAuthorizationUrl($redirectUri = null, $state = null, array $params = [])
    {
        //Request Parameters
        $params = array_merge([
            'client_id' => $this->getApp()->getClientId(),
            'response_type' => 'code',
            'state' => $state,
            ], $params);

        if (!is_null($redirectUri)) {
            $params['redirect_uri'] = $redirectUri;
        }

        return $this->buildUrl('/oauth2/authorize', $params);
    }
public function getAuthorizationUrl($redirectUri = null, $state = null, array $params = [])
    {
        //Request Parameters
        $params = array_merge([
            'client_id' => $this->getApp()->getClientId(),
            'response_type' => 'code',
            'state' => $state,
            ], $params);

        if (!is_null($redirectUri)) {
            $params['redirect_uri'] = $redirectUri;
        }

        return $this->buildUrl('/oauth2/authorize', $params);
    }
public function getAuthorizationUrl ( $ redirectUri = null , $ state = null , array $ params = [ ] ) { //Request Parameters $ params = array_merge ( [ 'client_id' => $ this -> getApp ( ) -> getClientId ( ) , 'response_type' => 'code' , 'state' => $ state , ] , $ params ) ; if ( ! is_null ( $ redirectUri ) ) { $ params [ 'redirect_uri' ] = $ redirectUri ; } return $ this -> buildUrl ( '/oauth2/authorize' , $ params ) ; }
Get the OAuth2 Authorization URL

@param string $redirectUri Callback URL to redirect user after authorization.
If null is passed, redirect_uri will be omitted
from the url and the code will be presented directly
to the user.
@param string $state       CSRF Token
@param array  $params      Additional Params

@link https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize

@return string
Get the OAuth2 Authorization URL