Sha256: 5a7f3aa3a96327e18124dbaa7d56b93058d880d97c5871b5ffc8d967e4498f45

Contents?: true

Size: 204 Bytes

Versions: 1

Compression:

Stored size: 204 Bytes

Contents

# http://github.com/soundcloud/oauth
class SoundcloudToken < OauthToken

  settings "http://api.soundcloud.com"
  
  key do |access_token|
    JSON.parse(access_token.get("/users/me"))["id"]
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
passport-0.1.1 lib/passport/oauth/tokens/soundcloud_token.rb