bestony/zhuji

This package is abandoned and no longer maintained. No replacement package was suggested.

腾讯云珠玑·SDK

1.0.0 2019-04-25 14:28 UTC

This package is auto-updated.

Last update: 2024-03-26 02:40:58 UTC


README

Build Status

一个基于 PHP 元编程实现的腾讯云·珠玑智能推荐 SDK

安装

$ composer require bestony/zhuji -vvv

用法

  1. 使用 Composer 引入 SDK
  2. 使用 SecretID、SecretKey 初始化 Client
  3. 构造参数
  4. 调用方法发送请求,并获取返回值。
<?php

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);

Client 的参数说明

<?php

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
        )

贡献项目

你可以以下三种形式来参与项目贡献

  1. 使用 issue 来记录本项目的 SDK
  2. 在 Issue issue tracker 中回答问题或修复 Bug。
  3. 维护新的功能或更新 Wiki。

License

MIT