https://github.com/fcannizzaro/unipa-api
Unipa Unofficial API
https://github.com/fcannizzaro/unipa-api
Last synced: 5 months ago
JSON representation
Unipa Unofficial API
- Host: GitHub
- URL: https://github.com/fcannizzaro/unipa-api
- Owner: fcannizzaro
- License: gpl-3.0
- Created: 2016-08-13T20:45:20.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-28T18:05:54.000Z (almost 10 years ago)
- Last Synced: 2025-01-07T16:13:07.825Z (over 1 year ago)
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unipa-API
Unipa Unofficial API from [UNIPA in tasca](https://play.google.com/store/apps/details?id=it.aranciaict.unipaintasca)
# CAS
## Authentication
```
url -> https://cas.unipa.it/sso/v1/tickets,
method -> POST,
body -> { username, password }
```
## Ticket
```
url -> Authentication.response.headers.location,
method -> POST,
body -> { service }
```
# Routes
Use cookies to keep CAS service authorization.
```
url -> {{service}}?ticket={{ticket}},
method -> GET,
headers -> { Authorization="UnipaAuth {{key}}" }
```
# Key
**STUDENTI_API_KEY** = ```aq4R51jA3g4af5042yH0aWt58t4a341c34tcRa73```
**STUDENTI_SERVICE_ID** = ```2000000```
Result is (request query + **STUDENTI\_SERVICE\_ID**) encrypted with **STUDENTI\_API\_KEY** (**SHA 256**)
### Sample
```
https://studentiws.unipa.it/v2/libretto.php?lingua=ITA
to_encrypt = lingua=ITA2000000
key = 405610f9c526ac061b765f227f7d600f45d57c677003180160fc278384d10395
```
# API Services
@Base https://studentiws.unipa.it/v2
## Menu
```
url -> /menu.php,
query -> { lingua }
```
## User Info
```
url -> /user.php
```
## Libretto
```
url -> /libretto.php,
query -> { lingua }
```
## Appelli
```
url -> /appelli.php,
query -> {
lingua,
matricola,
cfu,
cod_corso,
cod_inse,
prog_inse,
stato
}
```
## Messaggi
```
url -> /messaggi.php,
query -> {
lingua,
ts (yyyy-mm-ddThh:mm:ssZ)
}
```
## Foto
```
url -> /fotoStudente.php,
query -> { matricola }
```
# Unipa Not-API Services
Use html scraping.
## Pratiche
```
url -> http://immaweb.unipa.it/immaweb/private/pratiche/listPratiche.seam
```