src/Keboola/Writer/GoodData/Client.php
public function addUserToProject($writerId, $pid, $email, $role = 'editor', $queue = 'primary')
    {
        $job = $this->addUserToProjectAsync($writerId, $pid, $email, $role, $queue);
        if (!isset($job['url'])) {
            throw new ServerException('Create project job returned unexpected result: ' . json_encode($job, JSON_PRETTY_PRINT));
        }

        return $this->waitForJob($job['url']);
    }
public function addUserToProject($writerId, $pid, $email, $role = 'editor', $queue = 'primary')
    {
        $job = $this->addUserToProjectAsync($writerId, $pid, $email, $role, $queue);
        if (!isset($job['url'])) {
            throw new ServerException('Create project job returned unexpected result: ' . json_encode($job, JSON_PRETTY_PRINT));
        }

        return $this->waitForJob($job['url']);
    }
public function addUserToProject ( $ writerId , $ pid , $ email , $ role = 'editor' , $ queue = 'primary' ) { $ job = $ this -> addUserToProjectAsync ( $ writerId , $ pid , $ email , $ role , $ queue ) ; if ( ! isset ( $ job [ 'url' ] ) ) { throw new ServerException ( 'Create project job returned unexpected result: ' . json_encode ( $ job , JSON_PRETTY_PRINT ) ) ; } return $ this -> waitForJob ( $ job [ 'url' ] ) ; }
Add user to project and wait for finish
@param $writerId
@param $pid
@param $email
@param string $role admin|editor|readOnly|dashboardOnly
@param string $queue primary|secondary
@throws ServerException
@return mixed
Add user to project and wait for finish