百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

twitch_api

> 编程语言
开源

Rust 库用于与 Twitch API (即"Helix")、TMI 等进行通信!无畏地使用 Twitch 端点!

184 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Rust 库用于与 Twitch API (即"Helix")、TMI 等进行通信!无畏地使用 Twitch 端点!

Twitch API | Rust library for talking with the new Twitch API aka. "Helix", EventSub and more!

github crates-io docs-rs-big discord

See documentation for more info.

You can see current unpublished docs for the main branch here: local-docs

See examples for examples. If you want to run them locally, make sure you get the git submodules first.

rust
use twitch_api::helix::HelixClient;
use twitch_api::twitch_oauth2::{AccessToken, UserToken};

#[tokio::main]
async fn main() -> Result> {
    // Create the HelixClient, which is used to make requests to the Twitch API
    let client: HelixClient = HelixClient::default();
    // Create a UserToken, which is used to authenticate requests
    let token = UserToken::from_token(&client, AccessToken::from("mytoken")).await?;

    println!(
        "Channel: {:?}",
        client.get_channel_from_login("twitchdev", &token).await?
    );

    Ok(())
}

Notes

This crate was previously available as twitch_api2 and has since been renamed to twitch_api

Goals

This crate aims to target

  • Helix
    • See implemented endpoints
  • EventSub
    • See implemented eventsub Helix endpoints
  • Extensions
    • No functionality implemented yet
  • PubSub (without a client)
    • See implemented topics
    • PubSub is deprecated, replaced with EventSub websockets

There are no current plans to support

  • GraphQL
  • Drops (except what is in Helix)
  • Twitch IRC Chat, use museun/twitch_message or robotty/twitch-irc
  • Authentication, use twitch-rs/twitch_oauth2
  • Undocumented Helix endpoints, i.e endpoints mobile Twitch app uses. Including working "hidden" endpoints

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustasynchronoushelixpubsubrust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言