【文件属性】:
文件名称:edusoho-api:EduSoho网校平台API
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-11 00:21:31
edusoho PHP
EduSoho API
环境需求
PHP >= 5.6
安装
$ composer require oiuv/edusoho-api
使用
use Oiuv\EduSohoApi\ES;
$es = new ES('API网址', 'token', '用户名', '密码');
//网校API接口部分无需认证用户可调用,部分需要认证才能调用
//无需认证,只传API地址,API地址为网校域名+"/api/"
$es = new ES('https://edusoho.test/api/');
//X-Auth-Token认证
$es = new ES('https://edusoho.test/api/', '3mathrcgw2yog04s4c8wk8ooc84k4co');
//HTTP基础认证
$es = new ES('https://edusoho.test/api/', '',
【文件预览】:
edusoho-api-master
----.gitignore(46B)
----src()
--------ES.php(14KB)
----composer.json(382B)
----README.md(5KB)
----.editorconfig(337B)