PHP code example of surpaimb / bytedance
1. Go to this page and download the library: Download surpaimb/bytedance 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/ */
surpaimb / bytedance example snippets
use Surpaimb\ByteDance\Factory;
$options = [
'app_id' => 'wx3cf01239eb0exxx',
'secret' => 'f1c242f4f28f735d4687abb469072xxx',
// ...
];
$app = Factory::make($options);
$session = $app->auth->session($code);