Skip to content

sooxt98/MMUCarrot-Backend-Deprecated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMUCarrot

An automation app for MMU students

  • Time table scheduler (CMS) + Auto enrollment
  • MMLS + Bulletin + MMU + SRC mobile notifications
  • MMLS assignemnt deadline notifications
  • Group assignment discussion area (maybe?)

API Error Response Type

Error Message Description
Credentials is require IDM username & password is required
Credentials error Incorrect IDM username or password
Invalid token Token that's not generated by our server
Expired token Expired auth token
Subject code is require -
Err Unknown error

CMS Authorization

GET /login/?username=1161303833&password=imthepassword
Parameter Type Description
username string Required. IDM Username
password string Required. IDM Password

Responses

{
  "token" : "3119da45104679ecf712ce8e6cff8063c46c4f76f2e6de36d8b07077e3643cb75ab3dcaf9103b0545a121a6efc70f1b787cc92a5680fdbaf5ba31a7314274dbd5d9fa73c0d764e321ec276dae17589e4ab72452f6eda8f230141cebce5d075609adada5697ea98b70b8748e18b5e5a00bd4a73c9cc922c44c1aab9170d34925a068a8cc6e6b183c5bcdae7d692986543a3ded1dee7ce5da701e17cd6b627a93fdd1b8efb417af1119d7cfdd28a99491e528c0e7c63012f2ef46a69aacf85e6a7098f6071c626c6a88931d095a7f1c842c9dce6e05f21b50c8bf36ac8a00a315fdd9fbfecec2499ba7ae529e5ed0e6709e4eab26bb5b44ec70aed4b1b2fe5da11612ef7044b93780bcdbb618fd4406a14bf0a1a5faeaf05ff5f7bf6f8a35bc9159da0152426afb28e1b363cc1c1a9b1db9094d803dbc0c08fd56919a26785350c12f912501f072e71b240b261f6e70013dd1276e498b7fbd425c2873443bc8a82",
  "success" : true,
}

CMS Planner Requirement

GET /requirements/?token=3119da45104679ecf712ce8e6cff8063c46c4f76f2e6de36d8b07077e3643cb75ab3dcaf910...
Parameter Type Description
token string Required. auth token

Responses

{
  "result": {
    "list": [
      {
        "condition": {
          "note": "All required",
          "requiered": 3,
          "taken": 0,
          "needed": 3
        },
        "courses": [
          {
            "id": "MPU3343",
            "course": "BUSINESS & ENTREP IN MALAYSIA***  view multiple offerings",
            "unit": "3.00",
            "aid": 43
          },
          {
            "id": "TIS3151",
            "course": "SOFTWARE RELIABILITY & QA",
            "unit": "4.00",
            "aid": 44
          },
          {
            "id": "TPT3101",
            "course": "PROJECT",
            "unit": "8.00",
            "aid": 45
          }
        ]
      },
      {
        "condition": {
          "note": "Courses:  1 required, 0 taken, 1 needed",
          "requiered": 1,
          "taken": 0,
          "needed": 1
        },
        "courses": [
          {
            "id": "TCP2451",
            "course": "PROG. LANG. TRANS.",
            "unit": "4.00",
            "aid": 46
          },
          {
            "id": "TIC2151",
            "course": "THEORY OF COMPUTATION",
            "unit": "4.00",
            "aid": 47
          }
        ]
      },
      {
        "condition": {
          "note": "Courses:  1 required, 0 taken, 1 needed",
          "requiered": 1,
          "taken": 0,
          "needed": 1
        },
        "courses": [
          {
            "id": "TCP2651",
            "course": "CONCEPTS OF PROG LANG.",
            "unit": "4.00",
            "aid": 48
          },
          {
            "id": "TGD2251",
            "course": "GAME PHYSICS",
            "unit": "4.00",
            "aid": 49
          },
          {
            "id": "TIC3151",
            "course": "ARTIFICIAL INTELLIGENCE",
            "unit": "4.00",
            "aid": 50
          },
          {
            "id": "TIS2151",
            "course": "WEB APPLICATION DEVELOPMENT",
            "unit": "4.00",
            "aid": 51
          },
          {
            "id": "TIS3451",
            "course": "INFO TECHNOLOGY AUDITING",
            "unit": "4.00",
            "aid": 52
          },
          {
            "id": "TSE2251",
            "course": "SYSTEMS ANALYSIS AND DESIGN",
            "unit": "4.00",
            "aid": 53
          },
          {
            "id": "TSN3151",
            "course": "PARALLEL PROCESSING",
            "unit": "4.00",
            "aid": 54
          },
          {
            "id": "TSN3251",
            "course": "COMPUTER SECURITY",
            "unit": "4.00",
            "aid": 55
          }
        ]
      }
    ],
    "cms": {
      "id": "IIZGqB1zDJz8lr6OBWokIjUbE+su/ldhf8yuJMh5S4Q=",
      "state": "3"
    }
  },
  "success": true
}

CMS Search Course

GET /course/?code=TIS3151&token=3119da45104679ecf712ce8e6cff8063c46c4f76f2e6de36d8b07077e3643cb75ab3dcaf910...
Parameter Type Description
token string Required. auth token
code string Required. MMU Course code

Responses

{
  "result": [
    {
      "index": 1,
      "grade": "Undergraduate",
      "faculty": "FCI",
      "type": "Tutorial",
      "class_id": "3302",
      "class_section": "TT01",
      "day": "Monday",
      "time_start": "10:00 AM",
      "time_end": "12:00 PM",
      "venue": "CQAR2002"
    },
    {
      "index": 2,
      "grade": "Undergraduate",
      "faculty": "FCI",
      "type": "Tutorial",
      "class_id": "3305",
      "class_section": "TT04",
      "day": "Tuesday",
      "time_start": "02:00 PM",
      "time_end": "04:00 PM",
      "venue": "CQAR2002"
    },
    {
      "index": 3,
      "grade": "Undergraduate",
      "faculty": "FCI",
      "type": "Tutorial",
      "class_id": "3304",
      "class_section": "TT03",
      "day": "Wednesday",
      "time_start": "10:00 AM",
      "time_end": "12:00 PM",
      "venue": "CQAR2002"
    },
    {
      "index": 4,
      "grade": "Undergraduate",
      "faculty": "FCI",
      "type": "Lecture",
      "class_id": "3301",
      "class_section": "TC02",
      "day": "Wednesday",
      "time_start": "02:00 PM",
      "time_end": "04:00 PM",
      "venue": "CQCR3002"
    },
    {
      "index": 5,
      "grade": "Undergraduate",
      "faculty": "FCI",
      "type": "Tutorial",
      "class_id": "3303",
      "class_section": "TT02",
      "day": "Thursday",
      "time_start": "10:00 AM",
      "time_end": "12:00 PM",
      "venue": "CQAR2002"
    },
    {
      "index": 6,
      "grade": "Undergraduate",
      "faculty": "FCI",
      "type": "Lecture",
      "class_id": "3300",
      "class_section": "TC01",
      "day": "Thursday",
      "time_start": "04:00 PM",
      "time_end": "06:00 PM",
      "venue": "CQCR2002"
    }
  ],
  "success": true
}

CMS Add requirement course to planner

GET /add_to_planner/?aid=44&token=3119da45104679ecf712ce8e6cff8063c46c4f76f2e6de36d8b07077e3643cb75ab3dcaf910...
Parameter Type Description
token string Required. auth token
aid string Required. CMS ActionID which obtain from GET /requirements

Responses

{
  "success" : true
}

CMS Get Attendance

Get CMS Roster

CMS Get ExamSlip

CMS Get Timetable

CMS Get Advisor

CMS Get Finance Status

CMS Survey Submit

Auto complete AAS and others survey with a click.

Bulletin Get News

About

An automation app for MMU students. API provided ❤

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published