An open API service indexing awesome lists of open source software.

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

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
```