hatmatter / twitch_api

Twitch API library for Rust
GNU Affero General Public License v3.0
12 stars 7 forks source link

getting followed channels loops infinitely #5

Open Silberling opened 4 years ago

Silberling commented 4 years ago
let user_result = twitch_api::users::get(&twitch_client).expect("Unable to login using OAuth token");
let followed_channels = twitch_api::users::following(&twitch_client, user_result.id.to_string().as_str()).expect("Unable to list my followed channels");
for followed_channel in followed_channels {
    println!("Followed Channel: ID: {}", followed_channel.channel.id);
    println!("Followed Channel: Name: {}", followed_channel.channel.name);
}

will loop forever and never stop.

simonsan commented 4 years ago

@Silberling I took over maintenance from hatmatter, but unfortunately forked the repository before we dealt with it. You find the fork here. Please test it as well and make a PR there.

https://github.com/age-rs/libtwitch-rs