src/Connector/Projects.php
public function getOrganizationProjects(string $organization): ResponseInterface
    {
        // This API endpoint uses the newer `api.transifex.com` subdomain, only change if the default www was given
        $currentBaseUri = $this->getOption('base_uri');

        if (!$currentBaseUri || $currentBaseUri === 'https://www.transifex.com') {
            $this->setOption('base_uri', 'https://api.transifex.com');
        }

        try {
            return $this->client->sendRequest($this->createRequest('GET', $this->createUri("/organizations/$organization/projects/")));
        } finally {
            $this->setOption('base_uri', $currentBaseUri);
        }
    }
public function getOrganizationProjects(string $organization): ResponseInterface
    {
        // This API endpoint uses the newer `api.transifex.com` subdomain, only change if the default www was given
        $currentBaseUri = $this->getOption('base_uri');

        if (!$currentBaseUri || $currentBaseUri === 'https://www.transifex.com') {
            $this->setOption('base_uri', 'https://api.transifex.com');
        }

        try {
            return $this->client->sendRequest($this->createRequest('GET', $this->createUri("/organizations/$organization/projects/")));
        } finally {
            $this->setOption('base_uri', $currentBaseUri);
        }
    }
public function getOrganizationProjects ( string $ organization ) : ResponseInterface { // This API endpoint uses the newer `api.transifex.com` subdomain, only change if the default www was given $ currentBaseUri = $ this -> getOption ( 'base_uri' ) ; if ( ! $ currentBaseUri || $ currentBaseUri === 'https://www.transifex.com' ) { $ this -> setOption ( 'base_uri' , 'https://api.transifex.com' ) ; } try { return $ this -> client -> sendRequest ( $ this -> createRequest ( 'GET' , $ this -> createUri ( "/organizations/$organization/projects/" ) ) ) ; } finally { $ this -> setOption ( 'base_uri' , $ currentBaseUri ) ; } }
Get a list of projects belonging to an organization.

@return ResponseInterface
Get a list of projects belonging to an organization .