aingelc12ell/access-php-api

ACCESS学校系统的PHP API客户端

v1.2 2024-09-13 12:19 UTC

This package is auto-updated.

Last update: 2024-09-13 12:26:43 UTC


README

此API提供了一组可直接使用的代码,以集成开发内容到ACCESS学校管理系统核心数据中。

安装

composer require aingelc12ell\access-php-api

重命名并修改config.sample为config.php。值如提供和从托管学校获取。

基本用法

$Client = new ACCESS\Client(array(
   'application' => '', #name of system calling the request
    'school' => '', #SCHOOLNAMESETTINGS
    'key' => '', #API Key provided by school
    'hash' => '', #API has string provided by school
    'url' => 'https://api.accessphp.net/', #URL of the API specifically for the school
    'systemid' => '', #
    'debug' => false,
   ))
$Student = new ACCESS\Student('9504266');
$result = $Client->sendRequest($Student->getInfo());