buuyers / buuyers-api-php
该软件包最新版本(2.3.0)没有提供许可证信息。
基于 Guzzle 构建的 Buuyers API 客户端
2.3.0
2016-08-30 13:55 UTC
Requires
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: ^5.4
This package is not auto-updated.
Last update: 2024-09-18 17:58:37 UTC
README
安装
使用 Composer
{
"require": {
"buuyers/buuyers-api-php": "2.3.0"
}
}
客户端
$client = new EmailingCampaign(appId, apiKey);
电子邮件活动
$client->emailingCampaigns->campaigns([ 'company_id'=>xxx, // Id company 'email'=>xxx@yopmail.com, // Email 'type'=>'feedback', // feedback or avis 'date'=>xxxx-xx-xx, // Date to send 'time'=>xx, // Time to send 'name'=>xxxx, // Name (optional parameter) 'resend'=>xxxx-xx-xx, // Date to send (optional parameter), 'products'=>[], // Array of Products ]);
获取公司信息
$client->companies->getCompany(id);
获取公司评论
$client->companies->getCompanyReviews(id);
发布评论
$client->companies->addReview([ 'company_id'=>xxx, // Id company 'email'=>xxx@yopmail.com, // Email 'note'=>xx, // Note Review (1,2,3,4,5) 'title'=>xxxx, // Title Review (optional parameter) 'text'=>"Lorem ipsum dolor sit amet.", // Review Text (optional parameter), ]);