[GH-ISSUE #17] Adding new 'Follow' endpoints ? #7

Closed
opened 2026-02-27 19:25:35 +03:00 by kerem · 4 comments
Owner

Originally created by @vdesabou on GitHub (Dec 19, 2014).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/17

Hi,

First of all, thanks a lot for your awesome work on this! It's brilliant. (FYI, I'm using it for my repository https://github.com/vdesabou/alfred-spotify-mini-player).

Do you think it would be possible to add the new Follow endpoints at some point ? https://developer.spotify.com/web-api/web-api-follow-endpoints

Thanks

Originally created by @vdesabou on GitHub (Dec 19, 2014). Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/17 Hi, First of all, thanks a lot for your awesome work on this! It's brilliant. (FYI, I'm using it for my repository https://github.com/vdesabou/alfred-spotify-mini-player). Do you think it would be possible to add the new Follow endpoints at some point ? https://developer.spotify.com/web-api/web-api-follow-endpoints Thanks
kerem closed this issue 2026-02-27 19:25:36 +03:00
Author
Owner

@jwilsson commented on GitHub (Dec 19, 2014):

You're more than welcome to add them 😀

Let me know if you need any pointers.

<!-- gh-comment-id:67662952 --> @jwilsson commented on GitHub (Dec 19, 2014): You're more than welcome to add them :grinning: Let me know if you need any pointers.
Author
Owner

@vdesabou commented on GitHub (Dec 19, 2014):

You're more than welcome to add them

I was expecting this answer :)

Ok, I will have a look !

<!-- gh-comment-id:67663116 --> @vdesabou commented on GitHub (Dec 19, 2014): > You're more than welcome to add them I was expecting this answer :) Ok, I will have a look !
Author
Owner

@vdesabou commented on GitHub (Dec 19, 2014):

I have https://developer.spotify.com/web-api/check-current-user-follows/ working.

For https://developer.spotify.com/web-api/follow-artists-users/, I have a problem because the Request.php code assumes when it is a PUT, only data in body is sent.

However, for this new method, 'type' is required in query Parameter, and 'ids' is either in query parameter or request body data. So I don't really know how to add this.

Also we can't move all PUT to query parameters because https://developer.spotify.com/web-api/change-playlist-details/ requires data in request body data.

Any idea?

<!-- gh-comment-id:67675218 --> @vdesabou commented on GitHub (Dec 19, 2014): I have https://developer.spotify.com/web-api/check-current-user-follows/ working. For https://developer.spotify.com/web-api/follow-artists-users/, I have a problem because the Request.php code assumes when it is a PUT, only data in body is sent. However, for this new method, 'type' is required in query Parameter, and 'ids' is either in query parameter or request body data. So I don't really know how to add this. Also we can't move all PUT to query parameters because https://developer.spotify.com/web-api/change-playlist-details/ requires data in request body data. Any idea?
Author
Owner

@jwilsson commented on GitHub (Dec 19, 2014):

Nice!

We could do it in the same way as in addUserPlaylistTracks() and build the URL manually before sending it to Request::api().

I think we might need to rework the Request logic sometime to handle query strings regardless of HTTP method but let's leave it like this for now.

<!-- gh-comment-id:67681106 --> @jwilsson commented on GitHub (Dec 19, 2014): Nice! We could do it in the same way as in `addUserPlaylistTracks()` and build the URL manually before sending it to `Request::api()`. I think we might need to rework the `Request` logic sometime to handle query strings regardless of HTTP method but let's leave it like this for now.
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#7
No description provided.