Method: RSpotify.resolve_auth_request
- Defined in:
- lib/rspotify/connection.rb
.resolve_auth_request(user_id, url) ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/rspotify/connection.rb', line 43 def resolve_auth_request(user_id, url) users_credentials = if User.class_variable_defined?('@@users_credentials') User.class_variable_get('@@users_credentials') end if users_credentials && users_credentials[user_id] User.oauth_get(user_id, url) else get(url) end end |