1. Go to this page and download the library: Download fpy/tuangou 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/ */
fpy / tuangou example snippets
use Fpy\TuanGou\Session;
$session = new Session($appKey, $appSecret);
//session换取接口
$session->getToken($authCode,$redirectUrl=null);
//session刷新接口
$session->refreshToken($refreshToken);
//session范围查询接口
$session->sessionQuery($session);
//session适用店铺查询接口
$session->getScope($bid,$session);