
* Fixed weird match with get_online_members + Now using special(smoll) Public Member struct for public member data fetches as. They're size on networks should be pretty small so we can package a ton of them in a single request DOCS changes: - Removing references to unix timestamps in seconds - Removing references to joindate * Exact content-type values now specified
1.3 KiB
1.3 KiB
title | anchor | weight |
---|---|---|
Messages | messages-ep | 15 |
Messages
POST /message/send
-
Required permissions:
- SEND_MESSAGES
-
Required query string parameters:
-
id: u64
-
jwt: String
-
channel_id: u64
-
-
Required headers: Note that for any content that it is required that non-
text/plain
content be base64 encoded- content-type: String
- text/plain
- image/jpg | image/jpeg
- image/png
- application/webm
- application/mp4
- application/mp3
- content-type: String
-
Required body:
- Content itself should always go in the body
- Empty bodies result in an HTTP 400 response
-
Returns:
- None
GET /message/get_range
-
Required query string parameters:
-
id: u64
-
jwt: string
-
channel_id: u64
-
start_time: i64
- Unix timestamp (milli-seconds)
-
end_time: i64
- Unix timestamp (milli-seconds)
-
limit: Optional
- Maximum = 1000
-
-
Returns
- messages: Array
Example
> GET /message/get_range?id=123&jwt=...
< { "mesages": [...] }
GET /message/from_id
-
Required query string parameters:
-
id: u64
-
jwt: string
-
channel_id: u64
-
start: u64
-
limit: Optional
- Maximum = 1000
-
-
Returns
- messages: Array
Example
> GET /message/from_id?id=123&jwt=...
< { "mesages": [...] }