Memsource-API/src/Project.php

26 lines
644 B
PHP
Raw Normal View History

2019-06-22 00:13:54 +00:00
<?php
/**
* A very compact and simple Memsource API library
*
* @author Bruno Fontes <developer@brunofontes.net>
* @link https://github.com/brunofontes
*/
namespace BrunoFontes\Memsource;
class Project extends \BrunoFontes\Memsource\BaseApi
{
private $_url = '/api2/v1/projects';
/**
* List projects
*
* @param string $queryParams An array with the Query parameters to filter projects
*
* @return string The JSON answer from Memsource
*/
public function listProjects(array $queryParams = []): string
{
return $this->fetchApi->fetch('get', $this->_url, $queryParams);
}
}