[PR #63] [MERGED] Convert Spotify URIs to Spotify IDs for addMyTracks #239

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

📋 Pull Request Information

Original PR: https://github.com/jwilsson/spotify-web-api-php/pull/63
Author: @PouleR
Created: 2/22/2017
Status: Merged
Merged: 2/22/2017
Merged by: @jwilsson

Base: masterHead: master


📝 Commits (1)

  • 8833aaf Convert Spotify URIs to Spotify IDs for addMyTracks

📊 Changes

2 files changed (+25 additions, -1 deletions)

View changed files

📝 src/SpotifyWebAPI.php (+17 -0)
📝 tests/SpotifyWebAPITest.php (+8 -1)

📄 Description

The method addMyTracks didn't accept Spotify URI's as parameters (since the Spotify API expects only id's). Added a method that converts URIs to IDs. It strips the 'spotify:track:' value from the URIs.


🔄 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/63 **Author:** [@PouleR](https://github.com/PouleR) **Created:** 2/22/2017 **Status:** ✅ Merged **Merged:** 2/22/2017 **Merged by:** [@jwilsson](https://github.com/jwilsson) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`8833aaf`](https://github.com/jwilsson/spotify-web-api-php/commit/8833aafed46c53a3fc244b50bb1583a085b7b0f5) Convert Spotify URIs to Spotify IDs for addMyTracks ### 📊 Changes **2 files changed** (+25 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/SpotifyWebAPI.php` (+17 -0) 📝 `tests/SpotifyWebAPITest.php` (+8 -1) </details> ### 📄 Description The method addMyTracks didn't accept Spotify URI's as parameters (since the Spotify API expects only id's). Added a method that converts URIs to IDs. It strips the 'spotify:track:' value from the URIs. --- <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:46 +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#239
No description provided.