Download the PHP package gimucco/tiktok-loginkit without Composer
On this page you can find all versions of the php package gimucco/tiktok-loginkit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gimucco/tiktok-loginkit
More information about gimucco/tiktok-loginkit
Files in gimucco/tiktok-loginkit
Package tiktok-loginkit
Short Description TikTok Login Kit for Web in PHP
License GPL-3.0-only
Informations about the package tiktok-loginkit
TikTok Login Kit for PHP
TikTok Login Kit implementation in PHP based on the official documentation.
This is an unofficial SDK for the official Login Kit APIs.
Features
The library has been updated to include video/image publish via Direct Post
Current features include:
- Log in with TikTok
- Retrieve Basic User Information
- Retrieve Advanced User Information
- Retrieve Videos
- Paginate Videos
- Refresh Expired Token
- NEW Publish a Video with "Direct Post" via URL
- NEW Publish a Video with "Direct Post" via File
- NEW Publish one or more Images with "Direct Post" via URLs
Installation
Install via Composer
Requirements
You need to have your app set up and approved in the TikTok Developer Portal.
If you're upgrading to the v2 TikTok API version, make sure you've added your Redirect URLs and selected the proper scopes.
Requirements for Direct Posts
If you're planning to publish videos/photos via Direct Post, you need to undergo an audit. More info here
Until you're approved:
- You can only publish private videos
- The account that you use for testing must also be private
Code Example for Logging in and retrieving basic info
Alternative Constructor
If you prefer to use a .ini file to pass the api credentials, you can use the method. The .ini file should have this simple structure
And you call the alternative constructor by passing the path to the .ini file
Examples
Refer to the examples folder for a quick examples of how to use the login, fetch and paginate videos, publish videos