PHP code example of otkurbiz / bytedance

1. Go to this page and download the library: Download otkurbiz/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/ */

    

otkurbiz / bytedance example snippets




use EasyWeChat\Factory;

$options = [
    'app_id'    => 'wx3cf01239eb0exxx',
    'app_secret'    => 'f1c242f4f28f735d4687abb469072xxx',
    // ...
];

$app = Factory::make($options);

$session = $app->auth->session($code);