Skip to content
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

Implements transfer playback endpoint #163

Merged
merged 2 commits into from
Apr 23, 2023

Conversation

hayribakici
Copy link
Collaborator

This PR implements the /transfer endpoint resulting in transferring the playback into a given device id.

[bool play = true, bool retrievePlaybackState = true]) async {
assert(deviceId.isNotEmpty, 'No deviceId provided');
var jsonBody = jsonEncode({
'device_ids': [deviceId],
Copy link
Owner

@rinukkusu rinukkusu Apr 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was just about to comment on Spotify accepting an array but here we only send a single device. But then I read the docs real quick and I understand. Once again we are being spotified. 😆

@rinukkusu rinukkusu merged commit ba137a5 into rinukkusu:master Apr 23, 2023
@hayribakici hayribakici deleted the transfer branch April 23, 2023 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants