PHP code example of liaodan100 / douyin_sdk

1. Go to this page and download the library: Download liaodan100/douyin_sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

liaodan100 / douyin_sdk example snippets


$app = \ByteDance\App::make('业务类', $config);

$app = \ByteDance\App::make('oauth', $config);
$app->drive('douyin')->connect($scope , $redirect_url , $state)->toArray();