New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set a user's private_session #913

Open
marclundgren opened this Issue Jun 11, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@marclundgren

marclundgren commented Jun 11, 2018

Endpoint(s):

  • GET /v1/me/player/private-session
  • PUT /v1/me/player/private-session

Use Cases

  • GET has already been requested in this issue #685
  • I'd like to write a script that sets my session to "private" (PUT) and plays a "Sleeping Sounds" playlist, so that spotify does not analyze those and potentially recommend more.
eveningRitual() {
  spotify set-private-session true
  spotify play playlist {sleeping_playlist} // please, do not suggest more songs like these
}
morningRitual() {
  spotify set-private-session false
  spotify play playlist {weekly_discover_playlist} // yay new music
}
@marclundgren

This comment has been minimized.

marclundgren commented Jun 11, 2018

alternatively, the eveningRitual script could have the following logic

eveningRitual() {
  spotify set-private-session(true)
  spotify play playlist {sleeping_playlist} // please, do not suggest more songs like these
  
  // after 8 hours, turn off the private session
  for delay in 28800; do
    spotify stop
    spotify set-private-session false
  done
}

@marclundgren marclundgren changed the title from `/v1/me/player/private-session` to /v1/me/player/private-session Jun 11, 2018

@arirawr arirawr added the suggestion label Jun 13, 2018

@arirawr

This comment has been minimized.

arirawr commented Jun 13, 2018

Thanks for the feature request! We'll post here if there are any updates.

@bih bih changed the title from /v1/me/player/private-session to Set a user's private_session Jul 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment