Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Practice manager - Looking for feedback #760

Merged
merged 10 commits into from
Jan 31, 2022
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,21 @@ The [unit price decimal place precision](https://developer.xero.com/documentatio
$xero->setConfigOption('xero', 'unitdp', 3);
```

## Practice Manager

If requiring the "practicemanager" scope please query models using the following syntax

```php
$clients = $xero->load(\XeroPHP\Models\PracticeManager\Client::class)
->setParameter('detailed', true)
->setParameter('modifiedsince', date('Y-m-d\TH:i:s', strtotime('- 1 week')))
->execute();

foreach ($clients as $client) {
$name = $client->getName();
}
```

## Webhooks

If you are receiving webhooks from Xero there is `Webhook` class that can help with handling the request and parsing the associated event list.
Expand Down
1 change: 1 addition & 0 deletions src/XeroPHP/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Application
'core_version' => '2.0',
'payroll_version' => '1.0',
'file_version' => '1.0',
'practice_manager_version' => '3.0',
]
];

Expand Down
Loading