class Cloudsight::Api
Public Class Methods
get(url, headers = {})
click to toggle source
# File lib/cloudsight/api.rb, line 11 def get(url, headers = {}) headers['Authorization'] = authorization_header(:get, url) RestClient.get(url, headers) rescue RestClient::Exception => e e.response end
post(url, params, headers = {})
click to toggle source
# File lib/cloudsight/api.rb, line 4 def post(url, params, headers = {}) headers['Authorization'] = authorization_header(:post, url, params) RestClient.post(url, params, headers) rescue RestClient::Exception => e e.response end