Soundcloud API authentication without a web browser

后端 未结 1 449
猫巷女王i
猫巷女王i 2020-12-31 14:28

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,

相关标签:
1条回答
  • 2020-12-31 14:47

    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.

    0 讨论(0)
提交回复
热议问题