Method: PlaylyfeClient::Connection#exchange_code
- Defined in:
- lib/playlyfe_client/connection.rb
#exchange_code(code) ⇒ Object
187 188 189 190 191 192 193 194 195 196 197 |
# File 'lib/playlyfe_client/connection.rb', line 187 def exchange_code(code) if code.nil? err = PlaylyfeClient::ConnectionError.new("") err.name = 'init_failed' err. = 'You must pass in a code in exchange_code for the auth code flow' raise err else @code = code get_access_token() end end |