Name: ZJUintl-gRPC
Owner: ?????????
Description: gRPC service for Zhejiang University Intl Campus.
Created: 2018-04-25 13:37:29.0
Updated: 2018-05-06 09:00:54.0
Pushed: 2018-05-06 09:00:53.0
Size: 33
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
i
start
Also, you need to create a config file yourself according to the sample given by.
onfig_sample.js config.js
config.js
pt{
name: String // Your name
s
rn{
status: String
message: String
pt{
username: String // ZJUid
password: String // Password corresponding to that ZJUid
s
rn{
status: String
course: [{
id, name, time, type, room, instructor, week, month, date, weeknum
}]
pt{
username: String
password: String
s
rn{
status: String
courses: [{
name, grade, courseid
}]
pt{
username: String
password: String
courseid: String
s
rn{
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 |
If you have any problem when using our service, please let us know.