using Spotify's webAPI in an iOS app - spotify

So I'm in the process of developing an iOS app and I wanted to use the Spotify web API for searching and looking up songs in Spotify. However, I can't really tell if that is how to do it or if there would be better ways to do it and wanted to clarify before I began. Thanks in advance!

If you'd like the use the Web API, it works just the same as any other JSON REST API, so a lot of the tutorials out there for doing that on iOS will help you just fine. For converting between JSON and Objective-C data structures, newer iOS versions have NSJSONSerialization, otherwise I can recommend the open-source TouchJSON.
Also, you might want to look at CocoaLibSpotify, which is an Objective-C library for interacting with the Spotify service in a much more integrated way than the Web API — including music streaming. However, it does require a Spotify user be logged in to use.

Related

Is there a way to get audio from spotify

So I'm Working on a NodeJs project and am wondering if there is a way to get audio from Spotify Like you Input a song URL and It plays the track, I've looked all around and can only find stuff for the web browser, I don't know if they even have a way. If there is any info about this please let me know.
You'd have to make calls through the Spotify API.
You can read more about the API here: Spotify API Documentation
This is a node.js specific library that you may also want to check out:
thelinmichael's node.js Spotify API Library
The answer provisioned and marked as correct is wrong.
The only way you can extract audio is by using a Windows VM, connect via RDP. Run a script to play Spotify programatically and record the audio.
Since this is the only solution. It is not possible to query data from Spotify.

Spotify Unity SDK

Does anyone know, do I need any kind of addition rights (or license agreements) for implementing custom Unity wrapper for Spotify SDK? On its own, the Spotify Unity wrapper will not include any Spotify libs (no Android nor iOS). Each developer will be prompted to download appropriate SDK from the official Spotify website and import into Unity project manually.
I am considering the possibility of selling the custom Unity wrapper for Spotify SDK on the market (Unity Asset Store etc.). I will NOT sell any Spotify resources/libs, just my custom implementation of Unity wrapper for Spotify. But anyway, I need the information about the possible required granted permissions from the Spotify itself.
If you have any kind of useful information according to this case, please, share with me. Thank you!
I can't give any specific legal advice, I'd suggest you approach a legal expert - but it's worth checking out Spotify's Developer Terms of Service, specifically noting the excerpt "Unless you receive Spotify’s written approval, you shall not use the Spotify Platform to incorporate Spotify Content into any game functionality".

How to develop Spotify Desktop Applications, now Libspotify is discontinued

have done my due diligence, and not found any other posts that answer this question, but as usual, if you know a similar question, point me that way!
I noticed a long time back that Libspotify has been dicontinued:
(https://developer.spotify.com/technologies/libspotify/)
So, my question is - what should we do for developing Desktop applications?
They do state: "We hope to be able to provide you with a new library for other platforms." But, this has been going on since 2015!
I have seen many projects in GitHub still using Libspotify - so what should we do? An update was promised "in the upcoming months" but I've not seen anything yet.
What should we do for developing Desktop Applications?
We at Spotify don't currently provide playback as part of our platform offering outside of our iOS and Android SDKs, and I don't have any updates on that at the moment. As mentioned on the website, we hope to be able to provide playback SDKs for more platforms in the future. We don't support any new development on libspotify.
You can use the Spotify Web API to interact with Spotify in a variety of ways, including getting information about metadata, and accessing/modifying user libraries and playlists, which may be useful. You can also use the Applescript API to control playback on macOS, which may also help.
The Spotify Web API is pretty straight forward to use. Of course it defines the protocol rather than implements it so it is OS independent.
I put together a few classes to help unwrap some of the JSON parameters simply. These were written in Swift for macOS.

Can the spotify (windows) desktop client be extended?

I found no clues in the developer documentation, but equalify claims that it integrates into the desktop application. They don't offer a free version so I couldn't try it out.
Is it possible/supported to create extensions for the desktop client and is there some hidden documentation available?
I'd be interested in developing one, but so far I had no luck in finding any documentation.
It used to be possible using the Spotify Apps API. I think you can still manually sideload apps, but there is no App Store or similar. Moreover, support for old Spotify Apps is about to be dropped completely in the future.
So no, there's no way to extend Spotify as far as I know.

Streaming a Spotify track when using the Web API

I'm not really happy with the Windows Phone Spotify app. I'm looking into developing my own Spotify client using the Web API. It looks like it's not possible to stream a track using the Web API, after receiving the track metadata. Is this conclusion correct? Is there another way to make this work, using the track uri/href/spotify url? Will it become available in Web API in the near future?
Thx Martijn

Resources