承接 xelax90/learning-context-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

xelax90/learning-context-client

Composer 安装命令:

composer require xelax90/learning-context-client

包简介

Simple Learning Context API Client

README 文档

README

This is a PHP implementation for the Learning Context API

Token Storage

To use this API, you have to implement a token storage which implements the LearningContextClient\Storage\StorageInterface. Storage clases using the $_SESSION array and Zend Session are already provided in LearningContextClient\Storage\SessionArrayStorage and LearningContextClient\Storage\ZendSessionStorage respectively.

Configuration

To run the Client, you have to create a LearningContextClient\Config object. It recieves your appId and appSecret, a callback URL which will be called after OAuth authorization and handles the refresh token and an instance of LearningContextClient\Storage\StorageInterface. It suffices to do any request to the API or to call the LearningContextClient:::getTokenManager function.

Usage

Create an instance of LearningContextClient\Client and provide it with your configuration to use the API.

$storage = new \LearningContextClient\Storage\SessionArrayStorage();
$config = new \LearningContextClient\Config($APP_ID, $APP_SECRET, $CALLBACK_URL, $storage);
$lc = new \LearningContextClient\Client($config);

Obtain token

To obtain a token, you simple have to call any API interface or you call the LearningContextClient::getTokenManager function.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-2-Clause
  • 更新时间: 2016-01-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固