I can authenticate and fetch an access_token and the corresponding refresh_token fine (subsequent API interactions are also fine).
However, I seem to only be able to refresh a token (
That is correct. Refresh tokens cannot be used after an access token expires.
You can request a non-expiring access token by specifying
scope=non-expiring when constructing an authorization URL. To do this with the Ruby SDK, simply pass the additional params to the
require 'soundcloud' client = Soundcloud.new( :client_id => 'YOUR_CLIENT_ID', :client_secret => 'YOUR_CLIENT_SECRET', :redirect_uri => 'REDIRECT_URI' ) client.authorize_url(:scope => 'non-expiring')
The rest of the flow should be exactly the same (grab the 'code' parameter from the query string and make a
POST request to