注意:由于getbbalert这个接口无法在内网中正确获取数据(原因不详),因此暂时走的是位于
106.14.216.254:50053
上的rpc服务
As described above, this project is a gRPC
service for ZJUintl Campus, it aims at providing safe and stable application interface for developers to get data they want which includes course information, exam details, exam scores etc.
For a developer who want to use our service, you do not need to learn gRPC at all, what you need to do is to install our particular SDK which will be published later.
Hopefully, you guys will have a good developing experience.
npm i
npm start
Also, you need to create a config file yourself according to the sample given by.
mv config_sample.js config.js
vim config.js
The same course at same time in one day (even has distinct date) should has same room, instructor name and end time.
- Connect_test - Test whether you can connect to our sevice.
Accept{
name: String //Your name
}
Return{
status: String,
message: String
}
- getCourse - Get the course list and time table from PeopleSoft
Accept{
username: String //ZJUid
password: String //Password corresponding to that ZJUid
}
Return{
status: String
course: [{
id, name, time, type, room, instructor, week, month, date, weeknum
}]
}
- getBBGradeList - Get the course list with a sum grade from BlackBoard
Accept{
username: String
password: String
}
Return{
status: String
courses: [{
name, grade, courseid
}]
}
- getBBCertainGrade - Get detail grade for one certain course from BalckBoard
Accept{
username: String
password: String
courseid: String
}
Return{
status: String
items: [{
name, grade
}]
}
Case | Code | Generated at Client or Server |
---|---|---|
Username or password is wrong. | USERWRONG | Server |
Some error occurs when fetching data. | FETCHERROR | Server |
Some error occurs for your client. | CLIENTERROR | Client |
Success fetching data. | SUCCESS | Both |
You didn't input complete user info(username, password). | PARAMERROR | Server |
Laphets i@laphets.com
求是潮技术研发中心
If you have any problem when using our service, pls let me know.