Download the PHP package jeffrey-kroonen/bol-retailer-api-php without Composer
On this page you can find all versions of the php package jeffrey-kroonen/bol-retailer-api-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeffrey-kroonen/bol-retailer-api-php
More information about jeffrey-kroonen/bol-retailer-api-php
Files in jeffrey-kroonen/bol-retailer-api-php
Package bol-retailer-api-php
Short Description A PHP Client to interact with the Bol.com Retailer API
License MIT
Informations about the package bol-retailer-api-php
Bol.com Retailer API PHP
A PHP Client to interact with the Bol.com Retailer API v8
About the project
The project is built with php v8.1.4 and is not complete. Only the endpoints I needed for my project are included in this project. Their will be no future releases coming from my side, besides when the Bol.com Retailer API releases a new version or if I have to make use of more endpoints.
Feel free to fork this project and contribute your work to improve the project.
Supported endpoints
- Orders
- Returns
- Subscriptions
- Process status
Getting Started
Installation
The project can be easily be installed through Composer
Usage
Create a new instance of the Client
Authenticate at the Bol.com Retailer API
After you have been authenticated at the Bol.com Retailer API, you can get the auth data, such as client id, client secret and access token. These data can be used in future requests. It's good practice to save the access token in your local database to reuse the next time
Set The access token when instantiating Client
Next you can call the endpoint you want to use
Then you can call the methods available for that endpoint
To get the data from the currently authenticated application, you can use the accessor on the Client
You can get as example the Unix timestamp when the authentication will expire
You will receive the exception UnauthorizedException
when the request is no longer authorized. You can check manually when the authentication will expire
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (git checkout -b feature/AmazingFeature)
- Commit your Changes (git commit -m 'Add some AmazingFeature')
- Push to the Branch (git push origin feature/AmazingFeature)
- Open a Pull Request
All versions of bol-retailer-api-php with dependencies
jane-php/json-schema-runtime Version ^7.4
symfony/http-foundation Version ^6.1
phpseclib/phpseclib Version ^3.0
nesbot/carbon Version ^2.67