ciaranpflanagan/webinarjam-api
Composer 安装命令:
composer require ciaranpflanagan/webinarjam-api
包简介
WebinarJam API Wrapper
README 文档
README
A composer package that makes it easier to communicate with the WebinarJam API.
Installation
composer require ciaranpflanagan/webinarjam-api
Add the service provider to your config/app.php providers array
ciaranpflanagan\WebinarJamApi\WebinarJamServiceProvider::class
Usage
Include the package so it can be used
use ciaranpflanagan\WebinarJamApi\WebinarJam;
Create a new instance of the WebinarJam class, passing in your WebinarJam API key. More can be found on obtaining your API key in the WebinarJam API Documentation.
$webinar = new WebinarJam('WEBINARJAM_API_KEY');
List All Webinars
To get a full list of webinars. This returns an array with the response from the API.
$webinar->webinars();
Output
{
"status": "success",
"webinars": [
{
"webinar_id": 1,
"webinar_hash": "gfdsg765g",
"name": "First Webinar",
"description": "First Webinar From API",
"type": "Series of presentations",
"schedules": [
"Every day, 9:00 AM"
],
"timezone": "Europe\/Dublin"
},
{
"webinar_id": 2,
"webinar_hash": "gfdsg765g",
"name": "Second Webinar",
"description": "Second Webinar From API",
"type": "Series of presentations",
"schedules": [
"Every day, 9:00 AM"
],
"timezone": "Europe\/Dublin"
}
]
}
Details About An Individual Webinar
To get details about one individual webinar (including it's schedules). This returns an array with the response from the API.
/** * @param int $webinar_id */ $webinar->webinarDetails($webinar_id);
Output
{
"status": "success",
"webinar": {
"webinar_id": 1,
"webinar_hash": "gfdsg765g",
"name": "First Webinar",
"description": "First Webinar From API",
"type": "Series of presentations",
"schedules": [
{
"date": "2021-03-25 09:00",
"schedule": 99,
"comment": "Every day, 9:00 AM"
}
],
"timezone": "Europe\/Dublin",
"presenters": [
{
"name": "Ciaran Flanagan",
"email": "test@test.com",
"picture": ""
}
],
"registration_url": "",
"registration_type": "free",
"registration_fee": 0,
"registration_currency": "",
"registration_checkout_url": "",
"registration_post_payment_url": "",
"direct_live_room_url": "",
"direct_replay_room_url": ""
}
}
Register A Person To A Webinar
To register a person to a webinar. This returns an array with the response from the API.
Note: $webinar_id and $schedule are of type int.
/** * @param int $webinar_id * @param array $details */ $details = array( "first_name" => "", "last_name" => "", // Optional "email" => "", "schedule" => 0, "ip_address" => "", // Optional "phone_country_code" => "", // Optional "phone" => "", // Optional ); $webinar->register($webinar_id, $details);
Output
{
"status": "success",
"user": {
"webinar_id": 1,
"webinar_hash": "gfdsg765g",
"user_id": 1234,
"first_name": "Ciaran",
"last_name": "Flanagan",
"phone_country_code": "+353",
"phone": "123456789",
"email": "test@test.com",
"password": null,
"schedule": "99",
"date": "2021-03-25 9:00",
"timezone": "Europe\/Dublin",
"live_room_url": "",
"replay_room_url": "",
"thank_you_url": ""
}
}
Get A Webinar's Schedule
To get a webinars schedule. This returns an array with the response from the API.
/** * @param int $webinar_id */ $webinar->webinarSchedule($webinar_id); // or $webinar->webinarDetails($webinar_id); $webinar->webinarSchedule();
NOTE: If ->webinarDetails($webinar_id) is has already been called, ->webinarSchedule() can be called with no parameters and it will get the schedule using the same webinar ID used in ->webinarDetails($webinar_id).
Output
[
[
"date" => "2021-03-25 09:00",
"schedule" => 99,
"comment" => "Every day, 9:00 AM",
],
[
"date" => "2021-03-52 09:00",
"schedule" => 99,
"comment" => "Every day, 9:00 AM",
],
]
ciaranpflanagan/webinarjam-api 适用场景与选型建议
ciaranpflanagan/webinarjam-api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.57k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2021 年 03 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「laravel」 「webinarjam」 「webinarjam API」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ciaranpflanagan/webinarjam-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ciaranpflanagan/webinarjam-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ciaranpflanagan/webinarjam-api 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PSR-7 compatible library for making CRUD API endpoints
Alfabank REST API integration
Webinarjam API Integration for PHP >= 7.0
Webinarjam API
Laravel package for Accurate Online API integration.
A lightweight plain-PHP framework for database-backed CRUD APIs.
统计信息
- 总下载量: 2.57k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2021-03-27