Download the PHP package mycools/shopee-api without Composer
On this page you can find all versions of the php package mycools/shopee-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mycools/shopee-api
More information about mycools/shopee-api
Files in mycools/shopee-api
Package shopee-api
Short Description A simple laravel package for Shopee API V2
License MIT
Homepage https://github.com/mycools/shopee-api
Informations about the package shopee-api
Laravel Shopee
Laravel package for interacting with Shopee API V2.
Installation
You can install the package via composer:
Before Start
Configure your variables in your .env
(recommended) or you can publish the config file and change it there.
(Optional) You can publish the config file via this command:
Run the migration command to create the necessary database table.
Available Methods
Below are all methods available under this package.
Service name | Method name | Description |
---|---|---|
auth() | accessToken() | Generate access token. |
refreshToken() | Refresh access token before it expired. | |
order() | list() | Get an order list from specified date range. |
detail() | Get an order detail by order SN. | |
payment() | escrowDetail() | Get the accounting detail of an order. |
shop() | generateAuthorizationURL() | Get shop authorization URL for shop to authorize. |
getInfo() | Get shop information. | |
product() | searchItem() | Search product on shop. |
getItemBaseInfo() | Get product base information. | |
getItemExtraInfo() | Get product extra information. |
Usage
You may call the method by chaining the service name before calling the method name.
Event
This package also provide an event to allow your application to listen for Shopee web push. You can create your listener and register it under event below.
Event | Description |
---|---|
Mycools\Shopee\Events\WebhookReceived | Receive a push content from Shopee. |
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Raditz Farhan
- Jirawat R.
- All Contributors
License
The MIT License (MIT). Please see License File for more information.