PowerSchool Python API 插件
PowerSchool Python API Plugin
我正在尝试通过 Python PowerSchool 库连接到 PowerSchool SIS API。
来自安装说明here, I am stuck on the part where I need to create an XML file (including Oauth) for uploading as a plugin (via System > System Settings > Plugin Management Dashboard > {Your Plugin}). I am looking for an example showing how to do this in detail. I have tried looking at the information available in PowerSource here,但此文档并未准确说明要做什么。
在此先感谢您提供的任何帮助。
我认为您必须登录Powerschool系统安装插件才能连接API。
插件应该看起来像这样...
<?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>
有很多地方需要填写自己的信息,比如公司名称,产品名称等...
然后,您需要将您 want/need 访问的表和列放在 access_request 节点中。请注意,您必须指定所需的访问类型,例如 ViewOnly 或 FullAccess。
这是一项安全措施。然后,与您打交道的学校的 Powerschool 管理员可以决定是否允许使用该插件。安装插件后,Powerschool 管理员应该告诉您用于 OAuth 身份验证的 ClientId 和客户端密码。
我正在尝试通过 Python PowerSchool 库连接到 PowerSchool SIS API。
来自安装说明here, I am stuck on the part where I need to create an XML file (including Oauth) for uploading as a plugin (via System > System Settings > Plugin Management Dashboard > {Your Plugin}). I am looking for an example showing how to do this in detail. I have tried looking at the information available in PowerSource here,但此文档并未准确说明要做什么。
在此先感谢您提供的任何帮助。
我认为您必须登录Powerschool系统安装插件才能连接API。
插件应该看起来像这样...
<?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>
有很多地方需要填写自己的信息,比如公司名称,产品名称等...
然后,您需要将您 want/need 访问的表和列放在 access_request 节点中。请注意,您必须指定所需的访问类型,例如 ViewOnly 或 FullAccess。
这是一项安全措施。然后,与您打交道的学校的 Powerschool 管理员可以决定是否允许使用该插件。安装插件后,Powerschool 管理员应该告诉您用于 OAuth 身份验证的 ClientId 和客户端密码。