定制 crasp/trustpilot 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

crasp/trustpilot

最新稳定版本:v1.0.2

Composer 安装命令:

composer require crasp/trustpilot

包简介

trustpilot爬取business后台的评论数据

README 文档

README

用户模拟登录trustpilot后台,抓取trustpilot评论的功能

安装

composer require crasp/trustpilot

使用

$config = [
    "email"       => "support@dddm.com",
    "password"    => "YocgdddR8x8ddC4cn",
    'client_id'   => 'nZkt0UMZddddd9AOcviMZDmIfiI2L0x',
    'key'         => 'AIzaSyDzjddddbOR_CVaH8EGSvO0',
    'business_id' => '62561753ddd21d2f',
];
$trustpilot = new \Crasp\Trustpilot\Trustpilot($config);

拉取最新评论

try {
    $result = $trustpilot->search(1, 1, [
    'begin_time' => '2022-10-17 17:53:00',
    'end_time' => '2022-10-27 17:53:00',
    ]);
    print_r($result);
} catch (\Exception $exception) {
    return $exception->getMessage();
}

添加回复 && 修改评论


$trustpilot = new \Crasp\Trustpilot\Trustpilot($config);
try {
    $result = $trustpilot->reply("aafsa","大大士大夫安抚撒发的啥地方稍等阿萨德");
    print_r($result);
} catch (\Exception $exception) {
    return $exception->getMessage();
}

删除回复


$trustpilot = new \Crasp\Trustpilot\Trustpilot($config);
try {
    $result = $trustpilot->replyDelete("aafsa","大大士大夫安抚撒发的啥地方稍等阿萨德");
    print_r($result);
} catch (\Exception $exception) {
    return $exception->getMessage();
}

统计信息

  • 总下载量: 134
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2022-10-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固