Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TrackAttributes as exported struct #90

Open
bensinober opened this issue Mar 13, 2019 · 1 comment
Open

TrackAttributes as exported struct #90

bensinober opened this issue Mar 13, 2019 · 1 comment

Comments

@bensinober
Copy link

Hi, thanks for a great library wrapper!
I wonder about the TrackAttributes struct, wouldn't it be better/simpler to map a simple struct against the spotify API? at least export the fields so it can easily decode from json.
Now it is quite awkward to construct.
In my particular usecase I fetch some json trackattributes that I just want to send to the recommendation seed, and I dont see the point in looping and testing for every property. In the end its just json objects both ways.

@zmb3
Copy link
Owner

zmb3 commented Jul 30, 2019

Thanks for the issue! I'd be happy to review a PR with an alternative approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants