One, arrangement
As illustrated configuration, very simple! Just go vibrato open platform to open account, opened permissions, you can get the parameters shown in the picture, you can go to fill.
Second, the function has been achieved
-
OAuth 2.0 authorization
-
Users get public information
-
Fans list
-
Watchlist
-
Fans data query creator
-
The authorized account query video data
-
Query specifies video data
-
Get video comments
Third, call the method
Plug-in installed, and set up the plug-in configuration settings, you can use plug-ins
Code calls the plug-in as follows:
1.2.3. | $dyconfig = hook_one("get_douyin_config");
$AuthInfo = \Dy::__callStatic("AuthAuthInfo", $dyconfig); $AuthInfo->getCode(); |
Dy classes are categories, you need to call
1. | hook_one("get_douyin_config"); |
To instantiate
__callStatic () is a static function, Auth Auth represents the directory is represented AuthInfo class file name (class name) under the directory, passing $ dyconfig is the plug-in settings in the configuration parameters.
Demo Address: