graphem/thinkific-php 问题修复 & 功能扩展

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

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

graphem/thinkific-php

最新稳定版本:v2.2.0

Composer 安装命令:

composer require graphem/thinkific-php

包简介

Simple PHP library for Thinkific API

README 文档

README

Light Thinkific API library for PHP based on the documentation found here

Requirements

  • PHP 7.4+

Installation

The Thinkific PHP API client can be installed using Composer.

Composer

To install run composer require graphem/thinkific-php

Configuration

Configuration is done through an instance of Thinkific\Thinkific. The block is mandatory and if not passed, an error will be thrown.

// load Composer
require 'vendor/autoload.php';

use \Thinkific\Thinkific;

$subdomain  = "subdomain";
$apiKey     = "yourapikey"; 

$client = new Thinkific($apiKey,$subdomain);

Usage

Basic Operations

// Get all the courses
$courses = $client->courses()->getAll();
print_r($courses);

// Find a user by email
$user = $client->users()->findByEmail('me@domain.com');
print_r($user);

// Encoll a user to a course
$enroll = $client->enrollments()->create($courseId,$userId, '2020-01-01', '2021-01-01');

// Generate SSO link
$link = $client->sso()->getLink('signed-by (your application name or url)', ['email' => 'me@domain.com', 'first_name' => 'Me', 'last_name' => 'Hey']);

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-08-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固