Spotify API / SDK Plugin for Corona

Has anyone successfully used Spotify in their Corona applications in any shape or form?

I would love there to be a plugin and be to be able to make calls to Spotify functionality in my app.

Here’s a link to the iOS Beta.
https://developer.spotify.com/technologies/spotify-ios-sdk/

How would I go about approaching this challenge?

 

Spotify has a REST API that you should be able to use without integrating the SDK into your app.

https://developer.spotify.com/web-api/

I haven’t tried to use this yet, so I can say how well it works.

Hi elbowroomapps.

Please excuse my ignorance.
How would I go about using a REST API in Corona?

You would use network.request: http://omnigeek.robmiracle.com/2012/04/15/using-corona-sdk-with-rest-api-services/

I like this module by develephant for connecting to parse.com through the REST API.

https://bitbucket.org/develephant/mod_parse/wiki/Home

It’s worth studying to get an idea of the how to populate the parameters of the network,request() call.

There are lots of services that have a REST API, but most don’t have any examples of how to use it with Lua. You’re mostly on your own in trying to translate their examples (in Perl, JavaScript, etc.) to Lua.

You may steal some code from here to see how the sent/read JSON.

http://simon.fearby.com/blog/?p=2094

Spotify has a REST API that you should be able to use without integrating the SDK into your app.

https://developer.spotify.com/web-api/

I haven’t tried to use this yet, so I can say how well it works.

Hi elbowroomapps.

Please excuse my ignorance.
How would I go about using a REST API in Corona?

You would use network.request: http://omnigeek.robmiracle.com/2012/04/15/using-corona-sdk-with-rest-api-services/

I like this module by develephant for connecting to parse.com through the REST API.

https://bitbucket.org/develephant/mod_parse/wiki/Home

It’s worth studying to get an idea of the how to populate the parameters of the network,request() call.

There are lots of services that have a REST API, but most don’t have any examples of how to use it with Lua. You’re mostly on your own in trying to translate their examples (in Perl, JavaScript, etc.) to Lua.

You may steal some code from here to see how the sent/read JSON.

http://simon.fearby.com/blog/?p=2094