guapa / timechimp-sdk
1.0.1
2019-04-19 07:24 UTC
Requires
- php: >=7.2
- ext-json: *
- guzzlehttp/guzzle: ^6.0
Requires (Dev)
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2024-12-19 20:39:54 UTC
README
This is a package that allows you to call the API of TimeChimp, please see their documentation for more information
Installation
You can install the package via compose:
composer require guapa/timechimp-sdk
Usage
To use this package you need to instantiate a new request like so:
<?php $request = new \Guapa\TimeChimp\UsersRequest; $request->setAccessToken('abcde'); /** @var \GuzzleHttp\Psr7\Response $response */ $response = $request->getAll(); $users = json_decode($response->getBody(), true);
You need to add the access token after creating the instance of the request. This is done so the requests can be loaded using Dependency Injection
Available requests are:
- Customers
- Expenses
- Invoices
- Mileage
- Projects
- Project notes
- Time entries
- Users
See the official documentation for more information: https://timechimp.docs.apiary.io/#
Credits
License
The MIT License (MIT). Please see License File for more information.