[PR #87] [CLOSED] Bugfix, send empty body when no options are passed in for the me/play… #255

Closed
opened 2026-02-27 19:26:50 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jwilsson/spotify-web-api-php/pull/87
Author: @fan1200
Created: 6/7/2017
Status: Closed

Base: masterHead: master


📝 Commits (1)

  • 4f3bd69 Bugfix, send empty body when no options are passed in for the me/player/play endpoint.

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 src/SpotifyWebAPI.php (+1 -1)

📄 Description

…er/play endpoint.

Hi,

I came a across a bug where the player won't resume anymore. This was cost because of the body it was sending. When you just want to resume the player you must send a empty body, which was not the case since you converted the array to a json object.

First I wanted to solve this by making $options standard null but I saw you handled other endpoints with no body with a empty array.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jwilsson/spotify-web-api-php/pull/87 **Author:** [@fan1200](https://github.com/fan1200) **Created:** 6/7/2017 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`4f3bd69`](https://github.com/jwilsson/spotify-web-api-php/commit/4f3bd69057a74b990da0518b3ae1a75ee060c805) Bugfix, send empty body when no options are passed in for the me/player/play endpoint. ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/SpotifyWebAPI.php` (+1 -1) </details> ### 📄 Description …er/play endpoint. Hi, I came a across a bug where the player won't resume anymore. This was cost because of the body it was sending. When you just want to resume the player you must send a empty body, which was not the case since you converted the array to a json object. First I wanted to solve this by making `$options` standard null but I saw you handled other endpoints with no body with a empty array. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 19:26:50 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-web-api-php#255
No description provided.