Download the PHP package kkgerry/tiktokshop-od-larevel without Composer
On this page you can find all versions of the php package kkgerry/tiktokshop-od-larevel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kkgerry/tiktokshop-od-larevel
More information about kkgerry/tiktokshop-od-larevel
Files in kkgerry/tiktokshop-od-larevel
Package tiktokshop-od-larevel
Short Description Unofficial Tiktok Shop API Client in Laravel
License Apache-2.0
Informations about the package tiktokshop-od-larevel
Unofficial Tiktok Shop API Client in Laravel
Tiktok Shop API Client is a simple SDK implementation of Tiktok Shop API.
Since v2.x, library used API version 202309 and later. For older API version, please use v1.x
Installation
Install with Composer
Configure TiktokShop PHP Client
Grant token
There is a Auth class to help you getting the token from the shop using oAuth.
1) Create the authentication request
If you want the function to return the authentication url instead of auto-redirecting, you can set the argument $return (2nd argument) to true.
2) Get authentication code when redirected back to Redirect callback URL
after app authorization and exchange it for access token
3) Get authorized Shop cipher
Refresh your access token
Access token will be expired soon, so you need refresh new token by using
refresh_token
Usage API Example
You need
access_token
andshop_cipher
to start using TiktokShop API
-
Get product list: api document
- Get order list: api document
Change API version
As default, API version 202309 will be used in every api call. Use example below to change it
Webhook
Use webhook to receive incoming notification from tiktok shop
or manually configure the webhook receiver