Method: Toolshed::Client.request

Defined in:
lib/toolshed/client.rb

.request(method, path, options) ⇒ Object



214
215
216
217
218
219
220
221
222
# File 'lib/toolshed/client.rb', line 214

def self.request(method, path, options)
  response = HTTParty.send(method, "#{base_uri}#{path}", base_options.merge(options))

  if response.code == 401
    raise AuthenticationFailed
  end

  response
end