Customapi
$(customapi)
Customapi allows you to get the response body of a GET request to a URL.
Parameters
This variable requires one parameter, that is the URL that you want Fossabot to request from in order to get the response
Example Output
This is extremely variable, and is whatever the URL sends back in its body, all status codes are ignored and the bot solely prints the response body.
Developers
Requests to custom APIs by Fossabot can be formatted by using headers sent with the request. The request will timeout if not completed after 5 seconds.
X-Fossabot-ChannelName
- The name of the channel.
X-Fossabot-ChannelTwitchID
- The ID of the channels Twitch account.
X-Fossabot-ChannelID
- The internal ID of the channel given by Fossabot when joined.
X-Fossabot-IsTimer
- Set to 1
if the custom API was called from within a channel timer. (If called by a timer)
X-Fossabot-SenderName
- The name of the user that sent the message. (If not called by a timer)
X-Fossabot-SenderID
- The ID of the senders Twitch account. (If not called by a timer)
X-Fossabot-SenderLevel
- The user level of the sender. (If not called by a timer)