lukerodham / trustpilot-api
dev-master
2016-02-25 08:54 UTC
Requires
- php: >=5.4
- guzzlehttp/guzzle: ^6.1
This package is not auto-updated.
Last update: 2022-02-01 12:55:43 UTC
README
对trustpilot api的简单封装。
目前仅支持获取公司评论的api。
<?php $dir = dirname(__DIR__); include $dir . '/vendor/autoload.php'; $trustPilot = new \LukeRodham\TrustPilot\TrustPilot($apikey = ''); $reviews = $trustPilot->reviews()->latest(['language' => 'en']); $starRating = $trustPilot->reviews()->getStarRating(); $numberOfReviews = $trustPilot()->reviews()->getTotalNumberOfReviews(); $trustScore = $trustPilot()->reviews()->getTrustScore();