An unofficial API for the University of Nigeria student portal
API URL: https://unn-api.herokuapp.com/v1
username`: The student s unnportal.unn.edu.ng username
password`: The student s unnportal.unn.edu.ng username
Successful request (note the capitalization):
{
"status": "ok",
"message": "success",
"student": {
"surname": "ADEBAYO",
"first_name": "SHALVAH",
"middle_name": "JOSHUA",
"sex": "Male",
"mobile": "080xxxxxxxx",
"email": "FIRSTNAME.LASTNAME.REGNO@UNN.EDU.NG",
"department": "ELECTRONIC ENGINEERING",
"level": "200 LEVEL",
"entry_year": "2010-2011",
"grad_year": "2019-2020",
"matric_no": "201x/xxxxxx",
"jamb_no": "xxxxxxxxxx"
}
}
```
Unsuccessful request:
```
{
"status": "ok",
"message": "error_message"
}
```
Possible values of `error_message`:
- `authentication failed: incorrect username or password`
- `missing username`
- `missing password`
## Bugs or security vulnerabilities
If you discover any bugs or security vulnerabilities, please contact me at shalvah.adebayo@gmail.com or open an issue.
## Packages
If you are building a PHP app, you could use [this package](https://github.com/shalvah/unnportal-php), which gives you your results directly. Saves you the hassle o cURL or Guzzle.
## Contribution
If you would like to help improve this API, first of all, let me say thanks! All you need to do:
- Fork the project
- Clone your fork to your local machine
- Make your changes
- Commit your changes and push
- Open a pull request
I'll attend to all PRs as soon as I can!
## If you like this...
Please star and share! Thanks!