spotify_cli/endpoints/player/
skip_to_next.rs

1/// Skip to next track in the user's queue.
2///
3/// See: https://developer.spotify.com/documentation/web-api/reference/skip-users-playback-to-next-track
4use crate::http::api::SpotifyApi;
5use crate::http::client::HttpError;
6use crate::http::endpoints::Endpoint;
7use serde_json::Value;
8
9pub async fn skip_to_next(client: &SpotifyApi) -> Result<Option<Value>, HttpError> {
10    client.post(&Endpoint::PlayerNext.path()).await
11}