webboy/fub-api-client
Composer 安装命令:
composer require webboy/fub-api-client
包简介
PHP client library for Follow Up Boss service
关键字:
README 文档
README
PHP api client library for Follow Up Boss service
Install
composer require webboy/fub-api-client
Configuration
Use .env file to store configuration constants:
FUB_API_KEY - Your API key. It can be obtained from FollowUpBoss dashboard.
FUB_ORIGIN - Origin string for setting up Email Campaigns (emCampaigns).
Usage
There are 4 basic methods you can use and they depend on the endpoint. 4 basic methods are:
index($query_params)
GET method that will list entities
show($id)
GET method that will retrieve data of a single entity. Requires $id to be provided
create($data)
POST method that will create an entity using the data provided in the $data parameter
update($id,$data)
PUT method that will update the entity identified with $id using data provided in $data parameter
remove($id)
DELETE method that will delete the entity identified with $id
Example 1
$client = new Webboy\FubApiClient\Endpoints\Events();
$query_params['limit'] = 15;
$response = $client->index($query_params);
Following code will produce an array:
array:15 [▼
0 => array:13 [▼
"id" => 1433
"created" => "2017-09-06T15:29:37Z"
"updated" => "2017-09-06T15:29:37Z"
"personId" => 373
"message" => ""
"description" => ""
"noteId" => null
"source" => "<unspecified>"
"type" => "Viewed Page"
"pageTitle" => "Home Page"
"pageUrl" => "http://ikstrim.net/dev/godzilla-polish-live/"
"pageDuration" => 0
"property" => null
]
1 => array:13 [▶]
2 => array:13 [▶]
3 => array:13 [▶]
4 => array:13 [▶]
5 => array:13 [▶]
6 => array:13 [▶]
7 => array:13 [▶]
8 => array:13 [▶]
9 => array:13 [▶]
10 => array:13 [▶]
11 => array:13 [▶]
12 => array:13 [▶]
13 => array:13 [▶]
14 => array:13 [▶]
]
More documentation
More documentation can be found on official FollowUpBoss webiste.
webboy/fub-api-client 适用场景与选型建议
webboy/fub-api-client 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 526 次下载、GitHub Stars 达 5, 最近一次更新时间为 2017 年 03 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「webboy」 「FUB」 「Follow Up Boss」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 webboy/fub-api-client 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 webboy/fub-api-client 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 webboy/fub-api-client 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Follow, Favourite, Bookmark, Like & Subscribe.
Displays a list of tags that the user is following in the sidebar.
Let users follow other users and elements (Categories, Tags etc) to generate lists & feeds.
Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.
Add Likeable trait to Laravel Eloquent models
Follow and followers for laravel eloquent
统计信息
- 总下载量: 526
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-03-28