PHP code example of ydg / kwaixiaodian-sdk
1. Go to this page and download the library: Download ydg/kwaixiaodian-sdk 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/ */
ydg / kwaixiaodian-sdk example snippets
use Ydg\KwaixiaodianSdk\Kwaixiaodian;
$app = new Kwaixiaodian([
'app_key' => 'your app_key',
'app_secret' => 'your app_secret',
'sign_secret' => 'your sign_secret',
'access_token' => 'your access_token',
'http' => [ // set default options to http client
'headers' => [
'Content-Type' => 'application/x-www-form-urlencoded',
'Accept' => 'application/json;charset=UTF-8',
],
]
]);
$app->user->openUserInfoGet();