All URIs are relative to https://localhost/api/v1
Method | HTTP request | Description |
---|---|---|
ChatGet | Get /chat | Get chat messages. |
ChatGetChannels | Get /chat/channels | Get available channels. |
ChatGetConnected | Get /chat/connected | Get connected users. |
ChatNew | Post /chat | Send a chat message. |
[]Chat ChatGet(ctx, optional) Get chat messages.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *ChatGetOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a ChatGetOpts struct
Name | Type | Description | Notes |
---|---|---|---|
count | optional.Float32 | Number of results to fetch. | [default to 100] |
start | optional.Float32 | Starting ID for results. | [default to 0] |
reverse | optional.Bool | If true, will sort results newest first. | [default to true] |
channelID | optional.Float64 | Channel id. GET /chat/channels for ids. Leave blank for all. |
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ChatChannel ChatGetChannels(ctx, ) Get available channels.
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConnectedUsers ChatGetConnected(ctx, ) Get connected users.
Returns an array with browser users in the first position and API users (bots) in the second position.
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Chat ChatNew(ctx, message, optional) Send a chat message.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
message | string | ||
optional | *ChatNewOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a ChatNewOpts struct
Name | Type | Description | Notes |
---|
channelID | optional.Float64| Channel to post to. Default 1 (English). | [default to 1]
apiKey, apiNonce, apiSignature
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
[Back to top] [Back to API list] [Back to Model list] [Back to README]