I am working on a Soundcloud XBMC add-on. The add-on is open source, and written in Python. I would like to allow users to login to their SoundCloud account via the add-on, however it's possible to have XBMC instances running in an environment without access to a typical web browser (e.g. raspbmc
, which provides no window manager or graphical browser by default). Is there a way to still allow users to authenticate with this add-on without requiring use of the 'SoundCloud Connect Screen' and without violating the SoundCloud API TOS?
相关问题
- How to get each track of a playlist with the Sound
- Track Images(artwork_url) not returned by Soundclo
- Soundcloud iframe doesn't work with UIWebView
- My importXML + xPath + Soundcloud playlist Not Wor
- Rendering SoundCloud widget for a private track us
相关文章
- How to search specific user's tracks by tag wi
- Soundcloud HTML5 widget continuous play
- How to use Oauth properly
- Unable to upload a track using the soundcloud API
- Search by geo filter with soundcloud api
- Soundcloud: How do I know the sound cloud track ID
- How can I do a /resolve with the Soundcloud Javasc
- Error trying to access a iframe in JavaScript
This is not provided in theirs API, but after some digging into the libraries i figured it out. Make a POST to:
https://api.soundcloud.com/oauth2/token
with these params
grant_type=password&client_id=YOUR_CLIENT_ID&client_secret=YOUR_SECRET_ID&username=USERNAME&password=PASSWORD&scope=non-expiring
this will return non expiring token that you can use for future authenticated requests.