PHP code example of jianminlee / taobao-top

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

    

jianminlee / taobao-top example snippets


'TaoBaoTop'    => \Jianminlee\TaobaoTop\Facades\TaobaoTop::class,

$taoBaoService = \TaoBaoTop::tbk();
$taoBaoService = \TaoBaoTop::tbk('default');
$taoBaoService->setSession($user->aliAuthorize->token)->sc->savePublisherInfo([
                            'info_type' => 1,
                            'inviter_code' => 'XXXXXXXX'
                        ]);
shell
php artisan vendor:publish --provider=Jianminlee\TaobaoTop\ServiceProvider