GET
Statistiche di un canale
Restituisce informazioni generali: utenti presenti, picco massimo, topic, modi e kick totali.
https://www.simosnap.org/rest/service.php/channels/%23[channel]
{
"channel": "#chatitaly",
"users": "265",
"users_max": "629",
"topic": "...",
"topic_author": "nickname",
"topic_time": "2013-01-04 02:09:22",
"kicks": "8607",
"modes": "CnrSt"
}
channel
topic
users
GET
Utenti presenti in un canale
Restituisce l’elenco degli utenti attualmente presenti nel canale con dati pubblici disponibili.
https://www.simosnap.org/rest/service.php/channels/%23[channel]/users
[
{
"nickname": "Nick",
"realname": "Realname",
"hostname": "host.example",
"server": "irc.simosnap.com",
"away": false,
"client": "IRC client",
"online": true,
"country_code": "IT",
"country": "Italy",
"cmodes": "+aov"
}
]
users
online
cmodes
GET
Attività utenti in un canale
Restituisce le statistiche di attività degli utenti nel canale. Il parametro [type] identifica il periodo.
https://www.simosnap.org/rest/service.php/channels/%23[channel]/activity/[type]
[
{
"nickname": "Nick",
"letters": 945128,
"words": 135163,
"lines": 31986,
"actions": 225,
"smileys": 806,
"kicks": 0,
"modes": 3,
"topics": 0
}
]
0 totale
1 giorno
2 settimana
3 mese
4 anno
GET
Attività oraria media
Restituisce un array di valori numerici, uno per ogni ora della giornata.
https://www.simosnap.org/rest/service.php/channels/%23[channel]/hourly/activity/[type]
[65925, 58314, 48660, 38311, 34694, 27469, 24825]
GET
Client IRC utilizzati nel canale
Mostra quali client IRC sono utilizzati dagli utenti presenti nel canale.
https://www.simosnap.org/rest/service.php/channels/%23[channel]/clients
[
{
"client": "mIRC v7.27",
"count": "2"
}
]
GET
Nazionalità degli utenti
Restituisce una distribuzione per nazione degli utenti presenti nel canale.
https://www.simosnap.org/rest/service.php/channels/%23[channel]/countries
[
{
"country": "Italy",
"country_code": "IT",
"count": "12"
}
]