A client library for the KeyPay API, built from the provided OpenAPI v2 specification using the OpenAPI Generator
- PHP 7.4
You can install the package via composer:
composer require healyhatman/keypay-php
Before resource requests can be made, the application must be authorised. KeyPay supports other authorisation flows, but this package assumes you're using OAuth2
See Healyhatman/oauth2-keypay for instructions on obtaining Oauth2 credentials
Once you have a valid access token, you can instantiate a KeypayPHP\Application, and use it to help build the appropriate API object and the desired methods.
$application = new \KeypayPHP\Application($access_token);
All of the API classes are available under OpenAPI\Client\Api
. Using forApi()
will allow you to access the API using your application object's transport
$employees = $application->forApi('\OpenAPI\Client\Api\EmployeeApi')->auEmployeeGetEmployees($business_id);
Not implemented yet, one day
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.