getChatMessages
Returns the current visible (non-expired) chat messages.
Categories:
http://your-server/rest/getChatMessages
Since 1.2.0
Returns the current visible (non-expired) chat messages.
Parameters
Parameter | Req. | OpenS. | Default | Comment |
---|---|---|---|---|
since |
No | Only return messages newer than this time (in millis since Jan 1 1970). |
Example
http://your-server/rest/getChatMessages.view?u=demo&p=demo&v=1.13.0&c=AwesomeClientName&f=json
Result
A subsonic-response
element with a nested chatMessages
element on success.
{
"subsonic-response": {
"status": "ok",
"version": "1.16.1",
"type": "AwesomeServerName",
"serverVersion": "0.1.3 (tag)",
"openSubsonic": true
"chatMessages": {
"chatMessage": [
{
"username": "admin",
"time": 1678935707000,
"message": "Api Script Testing"
},
{
"username": "user",
"time": 1678935699000,
"message": "Api Script Testing"
}
]
}
}
}
{
"subsonic-response": {
"status": "ok",
"version": "1.16.1",
"chatMessages": {
"chatMessage": [
{
"username": "admin",
"time": 1678935707000,
"message": "Api Script Testing"
},
{
"username": "user",
"time": 1678935699000,
"message": "Api Script Testing"
}
]
}
}
}
Field | Type | Req. | OpenS. | Details |
---|---|---|---|---|
chatMessages |
chatMessages |
Yes | The message list |
Last modified April 8, 2023: Simplify OpenSubsonic API (#30) (616a145)