[PR #226] [CLOSED] Endpoint Follow Artists/User JSON Body had wrong format #278

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

📋 Pull Request Information

Original PR: https://github.com/jwilsson/spotify-web-api-php/pull/226
Author: @ghost
Created: 3/14/2021
Status: Closed

Base: mainHead: master


📝 Commits (1)

  • 7eb1e7b id strings should be divided by commas

📊 Changes

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

View changed files

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

📄 Description

Endpoint Reference

When sending the ID's in the body they should be formatted like this:
{ids:["74ASZWbe4lXaubB36ztrGX", "08td7MxkoHQkXnWAYD8d6Q"]}
But they got formatted like this:
{ids:["74ASZWbe4lXaubB36ztrGX,08td7MxkoHQkXnWAYD8d6Q"]}

Thanks for providing this Repo, it helped me alot!


🔄 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/226 **Author:** [@ghost](https://github.com/ghost) **Created:** 3/14/2021 **Status:** ❌ Closed **Base:** `main` ← **Head:** `master` --- ### 📝 Commits (1) - [`7eb1e7b`](https://github.com/jwilsson/spotify-web-api-php/commit/7eb1e7be79a41531c38ad7984926d2c3e68a565f) id strings should be divided by commas ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/SpotifyWebAPI.php` (+1 -0) </details> ### 📄 Description [Endpoint Reference](https://developer.spotify.com/documentation/web-api/reference/#endpoint-follow-artists-users) When sending the ID's in the body they should be formatted like this: `{ids:["74ASZWbe4lXaubB36ztrGX", "08td7MxkoHQkXnWAYD8d6Q"]}` But they got formatted like this: `{ids:["74ASZWbe4lXaubB36ztrGX,08td7MxkoHQkXnWAYD8d6Q"]}` Thanks for providing this Repo, it helped me alot! --- <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:54 +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#278
No description provided.