[][src]Module twitch_api2::helix::webhooks

This is supported on crate feature helix only.

Endpoints and topics for webhooks

Examples

let client = HelixClient::new();
let req = WebhookHubRequest::<topics::users::UserFollowsTopic>::builder().build();
let body = WebhookHubBody::builder()
    .callback("https://example.com/this-is-a-callback")
    .lease_seconds(864000)
    .mode(hub::WebhookSubscriptionMode::Subscribe)
    .secret("12233213890390".to_string())
    .topic(topics::users::UserFollowsTopic::builder().from_id(1336.to_string()).build())
    .build();

client.req_post(req, body, &token).await?;

Re-exports

pub use topics::Topic;

Modules

get_webhook_subscriptions

Get a list of your Webhook subscriptions.

hub

Subscribe to or unsubscribe from events for a specified topic. subscribe-tounsubscribe-from-events

topics

Various topics for webhooks