def get(method, arguments={})
      arguments[:api_key]   = api_key
      arguments[:sessionid] = sessionid if authenticated?
      JSON.parse RestClient.get(DEFAULT_ENDPOINT + method + '.json', :params => arguments)
    rescue RestClient::ExceptionWithResponse => e
      raise_api_exception e
    end
def get(method, arguments={})
      arguments[:api_key]   = api_key
      arguments[:sessionid] = sessionid if authenticated?
      JSON.parse RestClient.get(DEFAULT_ENDPOINT + method + '.json', :params => arguments)
    rescue RestClient::ExceptionWithResponse => e
      raise_api_exception e
    end
Public: Make a GET call to the Viddler API.

 method    - The String API method you'd like to call.
 arguments - The Hash of arguments to the API method (default: {}).

 Examples

   viddler.get 'viddler.videos.getDetails', :video_id => 'abc123'

 Returns a Hash containing the API response.
 Raises ApiException if an error is returned from the API.