src/Vimeo/Vimeo.php
public function buildAuthorizationEndpoint($redirect_uri, $scope = 'public', $state = null)
    {
        $query = array(
            "response_type" => 'code',
            "client_id" => $this->_client_id,
            "redirect_uri" => $redirect_uri
        );

        $query['scope'] = $scope;
        if (empty($scope)) {
            $query['scope'] = 'public';
        } elseif (is_array($scope)) {
            $query['scope'] = implode(' ', $scope);
        }

        if (!empty($state)) {
            $query['state'] = $state;
        }

        return self::AUTH_ENDPOINT . '?' . http_build_query($query);
    }
public function buildAuthorizationEndpoint($redirect_uri, $scope = 'public', $state = null)
    {
        $query = array(
            "response_type" => 'code',
            "client_id" => $this->_client_id,
            "redirect_uri" => $redirect_uri
        );

        $query['scope'] = $scope;
        if (empty($scope)) {
            $query['scope'] = 'public';
        } elseif (is_array($scope)) {
            $query['scope'] = implode(' ', $scope);
        }

        if (!empty($state)) {
            $query['state'] = $state;
        }

        return self::AUTH_ENDPOINT . '?' . http_build_query($query);
    }
public function buildAuthorizationEndpoint ( $ redirect_uri , $ scope = 'public' , $ state = null ) { $ query = array ( "response_type" => 'code' , "client_id" => $ this -> _client_id , "redirect_uri" => $ redirect_uri ) ; $ query [ 'scope' ] = $ scope ; if ( empty ( $ scope ) ) { $ query [ 'scope' ] = 'public' ; } elseif ( is_array ( $ scope ) ) { $ query [ 'scope' ] = implode ( ' ' , $ scope ) ; } if ( ! empty ( $ state ) ) { $ query [ 'state' ] = $ state ; } return self :: AUTH_ENDPOINT . '?' . http_build_query ( $ query ) ; }
Build the url that your user.

@param string $redirect_uri The redirect url that you have configured on your app page
@param string|array|null $scope An array of scopes that your final access token needs to access
@param string|null $state A random variable that will be returned on your redirect url. You should validate that this matches
@return string
Build the url that your user .