mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-27 07:55:49 +03:00
[PR #15] [MERGED] Added option to set return type to assoc array #223
Labels
No labels
bug
docs
enhancement
enhancement
enhancement
feedback wanted
good first issue
help wanted
help wanted
help wanted
invalid
pull-request
question
question
upstream
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-web-api-php#223
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jwilsson/spotify-web-api-php/pull/15
Author: @baskillen
Created: 10/29/2014
Status: ✅ Merged
Merged: 10/30/2014
Merged by: @jwilsson
Base:
master← Head:master📝 Commits (1)
b95bf3fAdded option to set return type to assoc array📊 Changes
4 files changed (+108 additions, -2 deletions)
View changed files
📝
src/Request.php(+41 -2)📝
src/SpotifyWebAPI.php(+26 -0)📝
tests/RequestTest.php(+21 -0)📝
tests/SpotifyWebAPITest.php(+20 -0)📄 Description
In order to make it possible to retrieve an associative array as the response from the web API we needed to add this functionality. I'm not sure if there is a better way to do this, but this seems to work fine for us.
The option to retrieve an array is much cleaner than writing a recursive wrapper that tranforms the stdObject to an array.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.