Coder Social home page Coder Social logo

binus_api's Introduction

Binus API

An unofficial REST API to fetch Binus data like class schedule and exam schedule.

If you are interested to contribute feel free to send a pull request.

General API Information

Error

  • Any post endpoint can return an error

This is a sample of error payload:

{
  "ok": false,
  "message": "Invalid username or password!"
}

Endpoints Information

  • All requests must be sent with POST.
  • For each request you need to include these JSON body parameters to make the call valid:
Name Type Optional Description
username string No Binus username without @binus.ac.id.
password string No Binus account pasword.

Schedule

Get a class schedule.

  • URL: /api/schedule
  • Method: POST

Response:

{
    "ok": true,
    "result": [...]
}

Exam

Get the latest exam schedule.

  • URL: /api/exam
  • Method: POST

Response:

{
  "ok": true,
  "result": {...}
}

Exam History

Get the history of user exam uploaded answer sheets url.

  • URL: /api/examHistory

  • Method: POST

  • Additional parameters

Name Type Optional Description
username string No Binus account username.
password string No Binus account pasword.
ExamQuestionID string No ExamQuestionID of the course. Every course has a unique ID. Recieved from /api/exam.

Response:

{
  "ok": true,
  "result": [
    {
    "Upload": 1,
    "SubmissionTime": "Friday XX July YY, 00:00:00",
    "Title": "string",
    "Url": "string"
    },
    {...}
  ]
}

Example

bellow is an example of POST request using Python (requests):

import requests

res = requests.post(
    "https://binus-api.vercel.app/api/schedule",
    json={"username": "User123", "password": "Pass123"}
)

print(res.json())

License

Licensed under MIT License.

Made with ❤️

binus_api's People

Contributors

mrmissx avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.