gcdtech / module-cyclops
用于从Cyclops检索和发送数据的模块
Requires
- rhubarbphp/module-restapi: ^1.0.0
Requires (Dev)
README
用于从Cyclops检索和发送数据的模块
命令
-
PushStateToCyclopsCommand.php推送Cyclops客户的状态的抽象Custard命令。 -
PushDeletedToCyclopsCommand.php删除Cyclops客户的列表。 -
PushStaleToCyclopsCommand.php更新之前失败的Cyclops客户的品牌同意列表。 -
PullChangesFromCyclopsCommand.php检索对Cyclops客户品牌同意列表所做的更新,允许我们更新项目特定成员以保持相同的状态。
实体
-
CustomerEntity.php用于大多数用例,该实体结合了CyclopsIdentityEntity及其品牌同意值。 -
CyclopsIdentityEntity.php我们如何识别Cyclops客户 - 由电子邮件、id、名和姓组成。 -
CyclopsCustomerListEntity.php由CustomerEntities数组组成,用于我们的“推送至Cyclops”用例。
异常
Cyclops API为特定端点抛出一些异常。我们处理的是
-
ConflictException.php如果我们发送的参数无效,则抛出。 -
CustomerNotFoundException.php如果我们正在更新或删除的客户在Cyclops API中找不到,则抛出。 -
CyclopsException.php所有其他异常都扩展的基本异常。 -
UserForbiddenException.php如果我们访问Cyclops API的用户没有读或写权限,则抛出。
设置
我们用于访问Cyclops API的URL、用户名和密码在CyclopsSettings.php中设置
用例
-
DeleteCustomerUseCase.php -
GetBrandOptInStatusChangesUseCase.php -
GetBrandOptInUseCase.php -
PullChangesFromCyclopsUseCase.php -
PushDeletedToCyclopsUseCase.php -
PushStaleToCyclopsUseCase.php