PHP code example of bestony / zhuji

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

    

bestony / zhuji example snippets





use Bestony\Zhuji\Client;
$client = new Client('secretId', 'secretKey');
$param = [
    'PoolIds.0' => '推荐组合ID',
    'SceneId' => '场景ID',
    'UidType' => '用户ID类型',
    'Uid' => '用户ID'
];
echo $client->DescribeRecommendProducts($param);
// echo $client->CreateUserAction($param);
// echo $client->ModifyProduct($param);
// echo $client->CreateProduct($param);
// echo $client->CreateProductPool($param);



public function __construct(
        string $secretId, // SecretID
        string $secretKey, // SecretKey
        string $region = 'ap-shanghai', // Region
        string $version = '2019-01-21', // Version
        string $endpoint = 'https://zj.tencentcloudapi.com' //Endpoint
        )