flipminds/gotowebinar 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

flipminds/gotowebinar

Composer 安装命令:

composer require flipminds/gotowebinar

包简介

GotoWebinar REST API wrapper. Uses the new api.getgo.com/G2W/rest endpoint

README 文档

README

Description

A simple wrapper around the the GotoWebinar API.

Install via Composer

We recommend installing this package with Composer.

Run in your project root:

composer require flipminds/gotowebinar:~1.0.0

Simple Usage

use FlipMinds\GotoWebinar\GotoWebinar;
  
$credentials = [
    'username' => ''
    'password' => ''
    'consumerKey' => ''
];
 
$gtw = new GotoWebinar($credentials);
 
$webinars = $gtw->getUpcoming();
  
$key = ''
foreach($webinars as $webinar) { 
    if (!$key) $key = $webinar->webinarKey;
}
 
$result = $gtw->createRegistrant($key, 'firstname','lastname','email);
print_r($result);

See the examples folder for more usages examples.

Caching the Authentication Token

By default GotoWebinar Authentication Tokens are valid for 356 days. Caching the token result in one less round trip to GotoWebinar servers.

You can use the getAuth() method call to retrieve an array of data that can be cached. You can use this array as a second argument to the constructor.

You can also set a callback to capture the authentication array after authenticating with GotoWebinar servers.

// $auth =  getfromcache()
   
$gtw = new GotoWebinar($credentials, $auth); // see Above
 
$gtw->setAuthCallback(function($auth) {
 // save $auth to cache 
});
 

统计信息

  • 总下载量: 134
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-09-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固