Vibrato get video like point number, the number of players, fans get a list of users

One, arrangement

Screenshot micro-channel _20200319214835.png

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

 

  1. OAuth 2.0 authorization

  2. Users get public information

  3. Fans list

  4. Watchlist

  5. Fans data query creator

  6. The authorized account query video data

  7. Query specifies video data

  8. 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:

https://www.thinkcmf.com/appstore/plugin/357.html

Guess you like

Origin www.cnblogs.com/programmerVIP/p/12534292.html