for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace VictorAvelar\Phraseapp\Resources;
use GuzzleHttp\Exception\GuzzleException;
use Psr\Http\Message\ResponseInterface;
use VictorAvelar\Phraseapp\PhraseappHttpClient;
class ProjectsResource extends AbstractPhraseappResource
{
/**
* Base resource path.
*
* @var string
*/
const RESOURCE_PATH = '/projects';
* ProjectsResource constructor.
* @param PhraseappHttpClient $client
public function __construct(PhraseappHttpClient $client)
parent::__construct($client);
}
* List all projects the current user has access to.
* @return mixed|ResponseInterface
* @throws GuzzleException
public function listProjects()
$req = $this->buildRequest('GET', self::RESOURCE_PATH);
return $this->execute($req);
* Get details on a single project.
* @param string $projectId
public function getProject(string $projectId)
$req = $this->buildRequest('GET', self::RESOURCE_PATH . "/$projectId");