Conferences¶
httpkom.conferences
¶
conferences_list()
async
¶
Lookup conference names.
Query parameters:
| Key | Type | Values |
|---|---|---|
| name | string | Name to look up according to KOM conventions. |
| want-pers | boolean | true (Default): Include conferences that are mailboxes. false: Do not include conferences that are mailboxes. |
| want-confs | boolean | true (Default): Include conferences that are not mailboxes. false: Do not include conferences that are not mailboxes. |
Request:
Response:
HTTP/1.0 200 OK
{
"conferences": [
{
"name": "Oskars tredje person",
"conf_no": 13212
},
{
"name": "Oskars Testperson",
"conf_no": 14506
}
]
}
Example:
conferences_create()
async
¶
Create a conference.
Request:
Responses:
Conference was created:
Example:
conferences_get(conf_no)
async
¶
Get information about a specific conference.
Query parameters:
| Key | Type | Values |
|---|---|---|
| micro | boolean | true (Default): Return micro conference information (UConference) which causes less load on the server. false: Return full conference information. |
Request:
Responses:
With micro=true:
HTTP/1.0 200 OK
{
"highest_local_no": 1996,
"nice": 77,
"type": {
"forbid_secret": 0,
"allow_anonymous": 1,
"rd_prot": 1,
"secret": 0,
"letterbox": 1,
"original": 0,
"reserved3": 0,
"reserved2": 0
},
"name": "Oskars Testperson",
"conf_no": 14506
}
With micro=false:
HTTP/1.0 200 OK
{
"super_conf": {
"name": "",
"conf_no": 0
},
"creator": {
"pers_no": 14506,
"pers_name": "Oskars Testperson"
},
"no_of_texts": 1977,
"no_of_members": 1,
"creation_time": "2013-11-30T15:58:06Z",
"permitted_submitters": {
"name": "",
"conf_no": 0
},
"conf_no": 14506,
"last_written": "2013-11-30T15:58:06Z",
"keep_commented": 77,
"name": "Oskars Testperson",
"type": {
"forbid_secret": 0,
"allow_anonymous": 1,
"rd_prot": 1,
"secret": 0,
"letterbox": 1,
"original": 0,
"reserved3": 0,
"reserved2": 0
},
"first_local_no": 20,
"expire": 0,
"msg_of_day": 0,
"supervisor": {
"name": "Oskars Testperson",
"conf_no": 14506
},
"presentation": 0,
"nice": 77
}
Conference does not exist:
Example:
conferences_put_text_read_marking(conf_no, local_text_no)
async
¶
conferences_get_texts(conf_no)
async
¶
Get the last created texts in the conference. Returns all text stats, but not the subject or body.
TODO: Query parameters for pagination.
Query parameters:
| Key | Type | Values |
|---|---|---|
| no-of-texts | integer | Number of text numbers to return. Default: 10 |
Request:
Response:
HTTP/1.0 200 OK
{
"texts": [
{
"recipient_list": [
{
"recpt": {
"conf_no": 14506
"name": "Oskars Testperson",
},
"type": "to",
"loc_no": 29,
}
],
"author": {
"pers_no": 14506,
"pers_name": "Oskars Testperson"
},
"creation_time": "2013-11-30T15:58:06Z",
"comment_in_list": [],
"content_type": "text/x-kom-basic",
"text_no": 19680717,
"comment_to_list": [],
},
...
]
}
Example: