This package is still a work in progress, extended documentation will follow.
If you are building an integration and you would like to test the API without affecting your live account, or you are building an integration on behalf of a Goodtill customer, you request a fully-featured test account from dev@thegoodtill.com. Please visit the Good Till API Documentation for more information.
You can install the package via composer:
composer require flairuk/good-till-system
Add the environment variables to your .env file and enter the api credentials.
GOOD_TILL_DOAMIN=
GOOD_TILL_USERNAME=
GOOD_TILL_PASSWORD=
Use the GoodTillSystem Facade.
use GoodTillSystem;
Once you add the facade, you can now interact with the Good Till System API.
- Get a list of products.
GoodTillSystem::products()->get();
- Get a product by id.
GoodTillSystem::product($id)->get();
- Create a new product.
GoodTillSystem::product()->create($data);
- Update a product by id.
GoodTillSystem::product($id)->update($data);
- Delete a product by id.
GoodTillSystem::product($id)->delete();
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email ijeffrouk@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.