kingscode/php-klanten-vertellen-api
最新稳定版本:v1.1.0
Composer 安装命令:
composer require kingscode/php-klanten-vertellen-api
包简介
This is a wrapper which makes it easy to retrieve and post data to the Klanten Vertellen website
README 文档
README
A PHP implementation of the klantenvertellen.nl Api.
This is a PHP package which you can import in any of your PHP projects. The goal of this package is to make it easy to communicate with the KlantenVertellen api with just a few function calls.
Installation
composer require kingscode/php-klanten-vertellen-api
Usage
⚠️ Before you get started, make sure you already have a token and location id from the
KlantenVertellen website.
You can get the api-token from:
My Account -> Invite -> Extra Options
The ID to your review page can be found in the link on the same page as the token:
(ex: https://www.klantenvertellen.nl/invite-link/XXXXXXX/yourcompany.nl?lang=en)
Getting started
To get started you need to create a KlantenVertellenWrapper object, like so:
$repository = new Repository('YOUR-TOKEN-HERE', 1234, 'nl'); $wrapper = new KlantenVertellenWrapper(new GetReviews($repository), new ReviewInvite($repository));
Getting reviews
//This will return 50 latest reviews that got posted on your page $reviews = $wrapper->reviews()->getReviews(50); //This will return the 25 worst reviews that got posted on your page $worstReviews = $wrapper->reviews()->getWorstReviews();
Sending review invites
//You can only send an invite to the same address every 30 days $wrapper->inviter()->sendInvite('info@mail.com', 'First name', 'Last name');
统计信息
- 总下载量: 11.45k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-05-24