PHP code example of ydg / hw365-sdk
1. Go to this page and download the library: Download ydg/hw365-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 / hw365-sdk example snippets
use Ydg\Hw365Sdk\Hw365;
$app = new Hw365([
'share_code' => 'your share_code',
'secret_key' => 'your secret_key',
]);
$app->kfc->entrance([
'user_id' => 1,
]);