schmurtz wrote:
> For now I'm able to transfer the playback with curl with a command line
> like that (just below) but I'm not able to create the token
I'd still suggest you use curl and the Spotify web API directly. You can
get the token from spotty:
Code:
--------------------
path/to/spotty -n spotty -c path/to/LMS/cache/spotty/someID --get-token
--------------------
"someID" is a 8 character string inside the spotty folder. As for cache
and binary paths, see Settings/Information. This will return some JSON
data, of which you'd have to extract the accessToken value.
If you're serious about scripting this, I'd suggest you install the "jq"
tool to extract information for json. You could then extract the token
using:
Code:
--------------------
path/to/spotty -n spotty -c path/to/LMS/cache/spotty/someID --get-token |
jq '.accessToken'
--------------------
Michael
http://www.herger.net/slim-plugins - Spotty, MusicArtistInfo
------------------------------------------------------------------------
mherger's Profile: http://forums.slimdevices.com/member.php?userid=50
View this thread: http://forums.slimdevices.com/showthread.php?t=108898
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins