xzzz9097 / spotifykit Goto Github PK
View Code? Open in Web Editor NEWSwift client for Spotify Web API
License: MIT License
Swift client for Spotify Web API
License: MIT License
I'm a complete beginner to Swift but wanted to create an app that exports playlists to Spotify based on mood. I have a random array of Spotify song URI strings but for some reason, I cannot 1) connect the user to my app (ie: based on your test code, the picture and information do not update) and 2) figure out how to export a playlist.
If you could briefly explain how I could do that, I would really appreciate it.
Spotify updated their API and is now requiring an OAuth token to use the Search endpoint:
https://developer.spotify.com/web-api/console/get-search-item/
swiftify.find will need to be updated to include the user's token in the GET request.
Hi -
What nice idea (building an API/SDK around Spotify web)! I wonder if you've also exposed enough low-level detail to invoke useful features like "play again from 15 seconds ago" and actual looping of a predefined section?
Best way to describe the song looping is in this unrealized, fairly popular Spotify feature request:
https://community.spotify.com/t5/Closed-Ideas/Music-Looping-individual-Songs-or-Parts/idi-p/1551156
For our needs an extended implementation of URLSession should be more than enough, allowing to remove Alamofire dependency.
Hello! I have been using SpotifyKit for my own personal project, but saw it didn't meet all of my use cases. So of course I added some of my own needed features such as spotify pagination, auth scopes,and completion handler for after authentication (just to name a few). I would be happy to clean it up a bit and submit a request. It's a bit messy but feel free to take a look here
Since Swift 4 can now natively de- and encode JSON it might be a nice way to reduce dependencies, using the built in methods going forward. I'd be happy to help if you need assistance :)
Hi,
Thanks for the nice framework. A couple issues:
I create a fresh single view project using the latest Xcode, compiled for iOS12. I then integrated into this project using:
pod 'SpotifyKit'
I receive a compilation error, and the framework appears in red within the project. This is using the master branch 0.0.6
I instead grabbed the source and placed in the project (in lieu of pod file integration) and receive two warnings in iOS12.
'unarchiveObject(with:)' was deprecated in iOS 12.0: Use +unarchivedObjectOfClass:fromData:error: instead
These occur on lines 35 and 55 in file Keychain.swift
Would appreciate if you could guid me on proper Pod integration, and whether I am pointing to the proper version. As I noticed you have a Swift4 branch, though your comments in the main branch allude to swift4 integration.
Thanks again.
Thanks for this library, I was playing around with it and found it very useful.
So far I had the following problems:
external_urls
, external_ids
etc.)images
)category
)Overall the parsing contains very good ideas with generic models and it was a great way getting into Decodable
s.
I mainly used SpotifyItems
, cleaned it up, added a generic collection item that could be reused across all responses containing paginated lists (parsing all fields: limit
, offset
, total
, prev
, next
) and some readability improvements.
My question:
Is there a plan to improve this library in the future?
Would pull requests be considered?
Many thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.