README.md: adding info about List Project

This commit is contained in:
Bruno F. Fontes 2019-06-22 19:12:55 -03:00
parent 60c5e49eb3
commit 7d21979193

View File

@ -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