class GnipApi::Search

  1. lib/gnip_api/search.rb
Superclass: Object

Methods

Public Instance

  1. activities
  2. counts

Public Instance methods

activities (options={})
[show source]
# File lib/gnip_api/search.rb, line 7
def activities options={}
  required_options?(options)
  payload = construct_activities_payload(options)
  request = GnipApi::Request.new_post(activities_endpoint, payload)
  data = fetch_data(request)
  return parse_activities_response(data)
end
counts (options={})
[show source]
# File lib/gnip_api/search.rb, line 15
def counts options={}
  required_options?(options)
  payload = construct_counts_payload(options)
  request = GnipApi::Request.new_post(count_endpoint, payload)
  data = fetch_data(request)
  return parse_counts_response(data)
end