spotify-cli 0.5.0

A command-line interface for Spotify
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// Skip to next track in the user's queue.
///
/// See: https://developer.spotify.com/documentation/web-api/reference/skip-users-playback-to-next-track
use crate::http::api::SpotifyApi;
use crate::http::client::HttpError;
use crate::http::endpoints::Endpoint;
use serde_json::Value;

pub async fn skip_to_next(client: &SpotifyApi) -> Result<Option<Value>, HttpError> {
    client.post(&Endpoint::PlayerNext.path()).await
}