Skip to content
DocumentationAPI Reference

Pause Playback

me.player.pause_playback(**kwargs) -> void
PUT/me/player/pause

Pause playback on the user's account. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.

ParametersExpand Collapse
device_id: String

The id of the device this command is targeting. If not supplied, the user's currently active device is the target.

Pause Playback

require "spotted"

spotted = Spotted::Client.new(access_token: "My Access Token")

result = spotted.me.player.pause_playback

puts(result)
Returns Examples