From 7d21979193e56a3a5ed1a5096a6bca5a43510e60 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Sat, 22 Jun 2019 19:12:55 -0300 Subject: [PATCH] README.md: adding info about List Project --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 7bfbfeb..8e40e51 100644 --- a/README.md +++ b/README.md @@ -35,5 +35,22 @@ $token = $memsource->oauth()->getAccessToken($authCode, $client_id, $client_secr Safely store this `$token` with the related user data and use it on any +## Project + +### Project list + +To list all projects... + +```php +$memsource = new \BrunoFontes\Memsource(); +$projectList = $memsource->project()->listProjects; +``` + +To use filters, add the API filter as parĂ¢meter: + +```php +$projectList = $memsource->project()->listProjects(['name' => 'Project X']); +``` + ## Bilingual Files