青果教务系统API(Java版)

API简介:

青果教务系统API,可以用来查询学生的成绩,课表以及考试时间地点。

使用说明:

//1.初始化API 默认是大连东软信息学院的教务系统NewJw.initAPI();// 其他学校教务系统初始化API的时候用这个初始化NewJw.initAPI(""); //2.用学号和密码登录(返回值是布尔型的)NewJw.login("学号", "密码");//3.查询课表,,成绩,考试。String schedule = NewJw.getSchedule("20132");// 2013-2014年度第三学期,从0开始String grade = NewJw.getGrade("2013", "2"); // 2013-2014年度第三学期,从0开始String exam = NewJw.getExam("20132", 2); // 0:中考,1:末考,2:补考。

返回的都是XML格式的

Jar包下载:

这个api好像失效了 谨慎下载吧。。。。

以下是网络接口:(不会Java的同学也可以使用网络接口来开发)

初始化并获得sessionid

:8080/newjw/servlet/newjw?commond=init&path=

返回 sessionId

Commond

接口类型

Path

教务网址 例如

(不加 和 网址后面的 /)

查看登录状态

:8080/newjw/servlet/newjw? commond=loginstatus&sessionid=&path=

返回 登录状态 login 和 faild

Commond

接口类型

Sessionid

Init 获得的sessionid

Path

教务网址 例如

(不加 和 网址后面的 /)

登录

:8080/newjw/servlet/newjw?commond=login? id=12111700220&pw=123&sessionid=&path=

返回 success 或者 faild

Commond

接口类型

Id

学号

Pw

密码

Sessionid

Init 获得的sessionid

Path

教务网址 例如

(不加 和 网址后面的 /)

查成绩

:8080/newjw/servlet/newjw? commond=grade&sessionid=&year=2013&term=0&path=

返回 已登录的账户的成绩xml

Commond

接口类型

Sessionid

Init 获得的sessionid

Year

学年 (2013代表 13-14学年)

Term

学期 (0代表第一学期)

Path

教务网址 例如

(不加 和 网址后面的 /)

查考试

:8080/newjw/servlet/newjw?commond=exam&sessionid=&year=2013&term=0&path=

返回 已登录的考试信息xml

Commond

接口类型

Sessionid

Init 获得的sessionid

Year

学年 (2013代表 13-14学年)

Term

学期 (0代表第一学期)

Type

考试类型(1中考 2末考 3补考)

Path

教务网址 例如

(不加 和 网址后面的 /)

查课表

:8080/newjw/servlet/newjw?commond=schedule&sessionid=&term=20130&path=

返回 已登录的账户的课表的xml

Commond

接口类型

Sessionid

Init 获得的sessionid

Term

学年 +学期 (0代表第一学期)

Path

教务网址 例如

(不加 和 网址后面的 /)

查成绩学年信息

:8080/newjw/servlet/newjw?commond=gradebar&sessionid=&path=

返回 查成绩的学年信息(JSON格式)

Commond

接口类型

Sessionid

Init 获得的sessionid

Path

教务网址 例如

(不加 和 网址后面的 /)

查考试的学年信息

:8080/newjw/servlet/newjw?commond=exambar&sessionid=&path=

返回 查考试的学年信息(JSON格式)

Commond

接口类型

Sessionid

Init 获得的sessionid

Path

教务网址 例如

(不加 和 网址后面的 /)

查课表的学年学期信息

:8080/newjw/servlet/newjw?commond=schedulebar&sessionid=&path=

返回 查课表的学年学期信息(JSON格式)

Commond

接口类型

Sessionid

Init 获得的sessionid

Path

教务网址 例如

(不加 和 网址后面的 /)

版权声明:本文为博主原创文章,未经博主允许不得转载。

前有阻碍,奋力把它冲开,运用炙热的激-情,

青果教务系统API(Java版)

相关文章:

你感兴趣的文章:

标签云: