async fn auth_code_do_things(spotify: &AuthCodeSpotify) {
    let artists = [
        &ArtistId::from_id("3RGLhK1IP9jnYFH4BRFJBS").unwrap(), // The Clash
        &ArtistId::from_id("0yNLKJebCb8Aueb54LYya3").unwrap(), // New Order
        &ArtistId::from_id("2jzc5TC5TVFLXQlBNiIUzE").unwrap(), // a-ha
    ];
    spotify
        .user_follow_artists(artists)
        .await
        .expect("couldn't follow artists");
    println!("Followed {} artists successfully.", artists.len());

    // Printing the followed artists
    let followed = spotify
        .current_user_followed_artists(None, None)
        .await
        .expect("couldn't get user followed artists");
    println!(
        "User currently follows at least {} artists.",
        followed.items.len()
    );

    spotify
        .user_unfollow_artists(artists)
        .await
        .expect("couldn't unfollow artists");
    println!("Unfollowed {} artists successfully.", artists.len());
}
// Sample request that will follow some artists, print the user's
// followed artists, and then unfollow the artists.
Sample request that will follow some artists, print the user's
followed artists, and then unfollow the artists.
Sample request that will follow some artists print the user ' s followed artists and then unfollow the artists .
async fn auth_code_do_things(spotify: &AuthCodeSpotify) {
    let artists = [
        &ArtistId::from_id("3RGLhK1IP9jnYFH4BRFJBS").unwrap(), // The Clash
        &ArtistId::from_id("0yNLKJebCb8Aueb54LYya3").unwrap(), // New Order
        &ArtistId::from_id("2jzc5TC5TVFLXQlBNiIUzE").unwrap(), // a-ha
    ];
    spotify
        .user_follow_artists(artists)
        .await
        .expect("couldn't follow artists");
    println!("Followed {} artists successfully.", artists.len());
    // Printing the followed artists
    let followed = spotify
        .current_user_followed_artists(None, None)
        .await
        .expect("couldn't get user followed artists");
    println!(
        "User currently follows at least {} artists.",
        followed.items.len()
    );
    spotify
        .user_unfollow_artists(artists)
        .await
        .expect("couldn't unfollow artists");
    println!("Unfollowed {} artists successfully.", artists.len());
}
async fn auth_code_do_things ( spotify : & AuthCodeSpotify ) { let artists = [ & ArtistId :: from_id ( " " ) . unwrap ( ) , // The Clash & ArtistId :: from_id ( " " ) . unwrap ( ) , // New Order & ArtistId :: from_id ( " " ) . unwrap ( ) , // a-ha ] ; spotify . user_follow_artists ( artists ) . await . expect ( " " ) ; println ! ( " " artists len ( ) ) ; // Printing the followed artists let followed = spotify . current_user_followed_artists ( None , None ) . await . expect ( " " ) ; println ! ( " " followed items len ( ) ) ; spotify . user_unfollow_artists ( artists ) . await . expect ( " " ) ; println ! ( " " artists len ( ) ) ; }
Sample request that will follow some artists, print the user's
followed artists, and then unfollow the artists.
Sample request that will follow some artists print the user ' s followed artists and then unfollow the artists .
spotify
&AuthCodeSpotify
spotify
&AuthCodeSpotify