Get a new JWT for the current user, using a Google OAuth token, or a refresh token.
{- "refreshToken": "string",
- "oAuthInfo": {
- "email": "string",
- "name": "string",
- "photoUrl": "string"
}, - "accessToken": "string",
- "accessTokenExpirationDate": "2019-08-24T14:15:22Z"
}
Get all of the SCU Evaluations data aggregated by professor and course.
{- "data": {
- "FNCE131": {
- "qualityTotal": 18.77777777777778,
- "qualityCount": 4,
- "difficultyTotal": 14.4,
- "difficultyCount": 4,
- "workloadTotal": 11.995000000000001,
- "workloadCount": 4,
- "qualityAvg": 4.694444444444445,
- "difficultyAvg": 3.6,
- "workloadAvg": 2.9987500000000002,
- "recentTerms": [
- "Winter 2024"
], - "courseName": "Real Estate Law",
- "professors": [
- "David Brown"
], - "type": "course"
}, - "David Smith": {
- "type": "prof",
- "overall": {
- "qualityTotal": 9.333333333333334,
- "qualityCount": 2,
- "difficultyTotal": 7,
- "difficultyCount": 2,
- "workloadTotal": 7,
- "workloadCount": 2,
- "qualityAvg": 4.666666666666667,
- "difficultyAvg": 3.5,
- "workloadAvg": 3.5
}, - "FNCE": {
- "qualityTotal": 9.333333333333334,
- "qualityCount": 2,
- "difficultyTotal": 7,
- "difficultyCount": 2,
- "workloadTotal": 7,
- "workloadCount": 2,
- "qualityAvg": 4.666666666666667,
- "difficultyAvg": 3.5,
- "workloadAvg": 3.5
}, - "FNCE131": {
- "qualityTotal": 9.333333333333334,
- "qualityCount": 2,
- "difficultyTotal": 7,
- "difficultyCount": 2,
- "workloadTotal": 7,
- "workloadCount": 2,
- "qualityAvg": 4.666666666666667,
- "difficultyAvg": 3.5,
- "workloadAvg": 3.5,
- "recentTerms": [
- "Winter 2024"
]
}
}
}, - "dataExpirationDate": "2024-03-01T00:00:00Z"
}
Get a list of users that match the specified name.
name required | string The name to search for. Note that this is a case-insensitive search, where the query name is matched to the beginning of the user's name (e.g., "j" would match "John Doe", but "doe" would not). |
[- {
- "id": "jdoe",
- "name": "John Doe",
}
]
Create a new user with the specified information.
photoUrl | string A URL to the user's profile picture. |
name required | string The user's full name. |
photo | string A base64-encoded image of the user's profile picture. |
subscription required | string A stringified webpush subscription object. |
{- "photoUrl": "string",
- "name": "John Doe",
- "photo": "b64 image",
- "subscription": "{ endpoint: \"https://fcm.googleapis.com/fcm/send/id\", expirationTime: null, keys: { p256dh: \"\", auth: \"\", }, };"
}
{- "subscriptions": [
- "string"
], - "interestedSections": [
- "P{Natalie Linnell}S{CSCI187-1}"
], - "coursesTaken": [
- "P{Natalie Linnell}C{CSCI187}"
], - "email": "jdoe@scu.edu",
- "id": "jdoe",
- "name": "John Doe",
}
object |
{- "interestedSections": {
- "add": {
- "P{Stacey Ritter}S{ACTG 11-1 - Introduction to Financial Accounting (-)}M{M W F | 8:00 AM - 9:05 AM | Rm 306 Kenna Hall}": "2024-03-01T00:00:00Z"
}, - "remove": [
- "P{Stacey Ritter}S{ACTG 11-1 - Introduction to Financial Accounting (-)}M{M W F | 8:00 AM - 9:05 AM | Rm 306 Kenna Hall}"
]
}
}
{- "message": "Error message."
}
Get the maximum amount of information about a user that the current user is authorized to see.
userId required | string The ID of the user to get information for (for the contextual user, this should just be "me"). |
{- "preferences": {
- "preferredSectionTimeRange": {
- "startHour": 8,
- "startMinute": 0,
- "endHour": 18,
- "endMinute": 0
}, - "scoreWeighting": {
- "weightScuEvals": 50,
- "weightRmp": 50
}
}, - "friends": [
- {
- "interestedSections": [
- "P{Natalie Linnell}S{CSCI187-1}"
], - "coursesTaken": [
- "P{Natalie Linnell}C{CSCI187}"
], - "email": "jdoe@scu.edu",
- "id": "jdoe",
- "name": "John Doe",
}
], - "friendRequests": [
- {
- "type": "incoming",
- "email": "jdoe@scu.edu",
- "id": "jdoe",
- "name": "John Doe",
}
], - "interestedSections": [
- "P{Natalie Linnell}S{CSCI187-1}"
], - "coursesTaken": [
- "P{Natalie Linnell}C{CSCI187}"
], - "email": "jdoe@scu.edu",
- "id": "jdoe",
- "name": "John Doe",
}