发布于 2021-11-04 16:57:57
我认为在连接到API之前,您必须登录到Powerschool系统来安装插件。
插件应该看起来像这样……
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://plugin.powerschool.pearson.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation='http://plugin.powerschool.pearson.com plugin.xsd'
name="(Your Product Name)"
version="(Your Product Version)"
description="The plugin for PowerSchool integration with (Your Product Name)">
<oauth></oauth>
<publisher name="(Your Company Name)">
<contact email="(Your Email Address)" />
</publisher>
<access_request>
<field table="CodeSet" field="description" access="ViewOnly" />
<field table="CodeSet" field="codetype" access="ViewOnly" />
<field table="CodeSet" field="codesetid" access="ViewOnly" />
<field table="CodeSet" field="code" access="ViewOnly" />
<field table="STUDENTS" field="DCID" access="ViewOnly" />
<field table="STUDENTS" field="ID" access="ViewOnly" />
<field table="STUDENTS" field="first_name" access="ViewOnly" />
<field table="STUDENTS" field="last_name" access="ViewOnly" />
<field table="STUDENTS" field="grade_level" access="ViewOnly" />
<field table="TRANSPORTATION" field="DCID" access="FullAccess" />
<field table="TRANSPORTATION" field="ID" access="FullAccess" />
<field table="TRANSPORTATION" field="StudentId" access="FullAccess" />
<field table="TRANSPORTATION" field="Description" access="FullAccess" />
</access_request>
</plugin>有很多地方你需要放置你自己的信息,比如公司名称,产品名称,等等。
然后,您需要将想要/需要访问的表和列放在access_request节点中。注意,您必须指定所需的访问类型,例如ViewOnly或FullAccess。
这是一种安全措施。然后,与您打交道的学校的Powerschool管理员可以决定是否允许该插件。插件安装完成后,Powerschool管理员应该告诉您用于OAuth身份验证的ClientId和客户端密码。
https://stackoverflow.com/questions/69799277
复制相似问题