spotify / ios-sdk

Spotify SDK for iOS
https://developer.spotify.com/documentation/ios/
659 stars 185 forks source link

Exporting a playlist to Spotify #194

Open theg3ntlem4n opened 4 years ago

theg3ntlem4n commented 4 years ago

I'm trying to create an app that exports a playlist to the user's Spotify account so when they select some options, it creates a random playlist with the option to export to Spotify. How would I go about doing this in XCode 11? I was having some trouble linking my app to the app and receiving client data.

I'm quite new to Swift so any help is appreciated!

jonahpelfrey commented 4 years ago

If I'm understanding correctly, there are quite a few steps you will need to take to achieve your desired outcome. Here are a few basic things to consider:

It seems like your main use case for the iOS SDK will be user authorization. Follow the quick start docs to achieve this: https://developer.spotify.com/documentation/ios/quick-start/#set-up-user-authorization

Creating and modifying playlists can be done through the Spotify Web API. Take a look through the reference docs: https://developer.spotify.com/documentation/web-api/reference/playlists/

If you aren't using any functionality of the Spotify app as a player - communicating playback state, playing music, using the app for authentication - you might be better off using just the Web API.