module Restforce::Concerns::API

def get_updated(sobject, start_time, end_time)

Restforce.configuration.mashify is false.
Returns an Array of Hash for each record in the result if
Returns a Restforce::Collection if Restforce.configuration.mashify is true.

client.get_updated('Whizbang', startDate, endDate)
endDate = Time.new(2002, 11, 1, 2, 2, 2, "+02:00")
startDate = Time.new(2002, 10, 31, 2, 2, 2, "+02:00")
# get changes for sobject Whizbang between yesterday and today

Examples

which have changed between startDateTime and endDateTime.
Public: Gets the IDs of sobjects of type [sobject]
def get_updated(sobject, start_time, end_time)
  start_time = start_time.utc.iso8601
  end_time = end_time.utc.iso8601
  url = "/sobjects/#{sobject}/updated/?start=#{start_time}&end=#{end_time}"
  api_get(url).body
end