darkorsa/salesmanago-api
Composer 安装命令:
composer require darkorsa/salesmanago-api
包简介
SalesManago API for PHP7 & 8
README 文档
README
Implementation of SalesManago API version 1.45.
For more details about the API go to SalesManago site.
Installation
Install the package through composer.
For the latest stable version use:
php composer.phar require pixers/salesmanago-api:1.1.1
For the latest version use:
php composer.phar require pixers/salesmanago-api:dev-master
Usage
API Client is divided into several sub-services, responsible for particular resources (e.g. Contacts, Events):
- ContactService
- ContactService::create($owner, $data)
- ContactService::update($owner, $email, $data)
- ContactService::upsert($owner, $email, $data)
- ContactService::delete($owner, $email, $data)
- ContactService::has($owner, $email)
- ContactService::useCoupon($email, $coupon)
- ContactService::listByEmails($owner, $data)
- ContactService::listByIds($owner, $data)
- ContactService::listRecentlyModified($owner, $data)
- ContactService::listRecentActivity($data)
- CouponService
- CouponService::create($owner, $email, $data)
- EmailService
- EmailService::create($data)
- EventService
- EventService::create($owner, $email, $data)
- EventService::update($owner, $eventId, $data)
- EventService::delete($owner, $eventId)
- MailingListService
- MailingListService::add($email)
- MailingListService::remove($email)
- PhoneListService
- PhoneListService::add($email)
- PhoneListService::remove($email)
- RuleService
- RuleService::create($owner, $data)
- SystemService
- SystemService::registerAccount($data)
- SystemService::authorise($userName, $password)
- TagService
- TagService::getAll($owner, $data)
- TagService::modify($owner, $email, $data)
- TaskService
- TaskService::create($data)
- TaskService::update($taskId, $data)
- TaskService::delete($taskId)
Basic usage
<?php use Pixers\SalesManagoAPI\Client; use Pixers\SalesManagoAPI\SalesManago; // First - initialize configured client // endpoint - e.g. https://app3.salesmanago.pl/api/ $client = new Client($clientId, $endpoint, $apiSecret, $apiKey); // Then - initialize SalesManago Services Locator $salesManago = new SalesManago($client); // Now you can use specific services $contactResponse = $salesManago->getContactService()->delete($owner, $email, $data); $eventResponse = $salesManago->getEventService()->delete($owner, $eventId);
Tests
Create phpunit configuration in phpunit.xml file, based on template from phpunit.xml.dist.
After that you can run tests with:
phpunit -c phpunit.xml
Authors
- Sylwester Łuczak sylwester.luczak@pixers.pl
- Antoni Orfin antoni@scalebeat.com
- Michał Kanak michal.kanak@pixers.pl
License
Copyright 2016 PIXERS Ltd - www.pixersize.com
Licensed under the BSD 3-Clause
darkorsa/salesmanago-api 适用场景与选型建议
darkorsa/salesmanago-api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 261 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 06 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 darkorsa/salesmanago-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 darkorsa/salesmanago-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 261
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2021-06-02