PHP code example of tb07 / open-kuaishou

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

    

tb07 / open-kuaishou example snippets




$app = new Tb07\OpenKuaiShou\OpenKuaiShou([  
            'debug' => true,
            'appKey' => 'your app key',
            'appSecret' => 'your app secret'
            'signSecret' => 'your sign Secret'
            'messageSecretKey' => 'your message Secret Key'
]);

// 创建授权
$app->ksAuthorization->createPcAuthUrl('https://www.test.com/authorization');

// 部分API没有封装成具体方法,你也可以自行调用 request 方法
$app->request('请求方式','方法', ['参数'=> '值'],'授权凭证');