Skip to main content

Crate altstream_api

Crate altstream_api 

Source
Expand description

§altstream-api

Rust API wrapper for the alternative streaming platform AltStream Online

§Disclaimer

This library is not well tested, and the AltStream API is brand new and may see breaking changes in the future. Use at your own risk.

§Example

let username = "letsgoashe"; // The creator of AltStream!
let channel_info = altstream_api::get_channel_info(username).await?;

let bio: Option<String> = channel_info.bio;

let live: bool = channel_info.stream.is_live;

let game: String = channel_info.stream.game.ok_or("No game")?.name;

Structs§

ChannelEmoteInfo
Information about a channel emote.
ChannelEmotes
A channel’s emotes.
ChannelInfo
Information about a channel.
ChannelRewardInfo
Information about a channel reward.
ChannelRewards
A channel’s rewards.
GameInfo
Information about a game.
PanelInfo
Information about a channel panel.
Panels
A channel’s panels.
StreamInfo
Information about a channel’s stream.
StreamTags
Tags associated with a channel’s stream.
UserSettings
A user’s settings.

Functions§

get_channel_emotes
Get information about a channel’s emotes.
get_channel_info
Get information about a channel.
get_channel_panels
Get information about a channel’s panels.
get_channel_rewards
Get information about a channel’s rewards.
get_stream_tags
Get information about a stream’s tags.
get_user_channel_settings
Get information about a user’s settings for a specific channel.
get_user_settings
Get information about a user’s settings.