firewards/getrevue-php
Composer 安装命令:
composer require firewards/getrevue-php
包简介
Simple access interface to GetRevue's web API.
关键字:
README 文档
README
Unofficial GetRevue PHP API for v2.
This package makes it simple to access GetRevues's web API. Checkout https://www.getrevue.co/api for more information on GetRevue's API.
Install
Via Composer
$ composer require firewards/getrevue-php
Requirements
The following versions of PHP are supported.
- PHP 7.0
- PHP 7.1
- PHP 7.2
- PHP 7.3
- PHP 7.4
API Key
All API calls require an API Key. You can find your API Key in the GetRevue Account page under the Integrations tab (scroll all the way down).
Usage
Start by using GetRevueAPI and creating an instance with your ConvertKit API key
$apiKey = "your-key-goes-here"; $api = new \Firewards\GetRevueApi($apiKey);
Examples
Add a new email to your list of subscribers.
$subscriber = $this->api->addSubscriber("getrevue@firewards.com", 'firstName', 'lastName'); /** Return example: array(6) { ["id"]=> int(42840832) ["list_id"]=> int(64471) ["email"]=> string(26) "test_8658431@firewards.com" ["first_name"]=> string(9) "firstName" ["last_name"]=> string(8) "lastName" ["last_changed"]=> string(24) "2020-12-24T02:21:26.333Z" } */
Unsubscribe an existing subscriber by email. Revue is not returning any success or failure codes.
if ($api->unsubscribe("getrevue@firewards.com")) { // unsbuscribed }
Get all subscribers and iterate through them. Revue's API does not support paging, yet. The API will return 5000 subscribers.
foreach ($api->getSubscribers() as $subscriber) { /* * array(6) { ["id"]=> int(42840832) ["list_id"]=> int(64471) ["email"]=> string(26) "test_8658431@firewards.com" ["first_name"]=> string(9) "firstName" ["last_name"]=> string(8) "lastName" ["last_changed"]=> string(24) "2020-12-24T02:21:26.333Z" } */ }
Get all available lists (subscriber groups).
foreach ($api->getLists()) { }
Return information about a specific list using its id.
$list = $api->getList(13212);
License
The MIT License (MIT). Please see License File for more information.
Sponsor
This package is sponsored by www.firewards.com, Firewards makes it easy to setup a referral and rewards program for your email list and newsletter.
firewards/getrevue-php 适用场景与选型建议
firewards/getrevue-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 30 次下载、GitHub Stars 达 4, 最近一次更新时间为 2020 年 12 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「newsletter」 「getrevue」 「revue」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 firewards/getrevue-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 firewards/getrevue-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 firewards/getrevue-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PSR-7 compatible library for making CRUD API endpoints
Manage newsletters in Laravel
Sendrill DB
The Newsletter Module provides the newsletter features to manage newsletters and mailing lists.
Custom form builder for OctoberCMS
Yii2 Elasticemail to manage Elasticemail Email Platform in a Yii2 site.
统计信息
- 总下载量: 30
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-12-24