diff --git a/src/Project.php b/src/Project.php new file mode 100644 index 0000000..fc4a478 --- /dev/null +++ b/src/Project.php @@ -0,0 +1,25 @@ + + * @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); + } +}