use instances_social::Client; use std::env; fn main() { dotenv::dotenv().expect("Couldn't execute dotenv()"); let token = env::var("INSTANCES_SOCIAL_TOKEN").expect("A token is required, set the env var INSTANCES_SOCIAL_TOKEN to run this example"); let client = Client::new(&token); for inst in client.instances().list().iter().take(40) { println!("got instance {:?}", inst); } }