class Event 
  def self.client
    @client ||= Intercom::Client.new(app_id: IntercomRails.config.app_id, api_key: IntercomRails.config.api_secret)
  end

  def self.create(options)
    begin
      self.client.events.create(options)
    rescue
      return false
    end  
  end

end

class Event 
  def self.client
    @client ||= Intercom::Client.new(app_id: IntercomRails.config.app_id, api_key: ENV["INTERCOM_API_KEY"])
  end

  def self.create(options)
    begin
      self.client.events.create(options)
    rescue
      return false
    end  
  end

end

Fix intercom API Key and Secret mixup
Fix intercom API Key and Secret mixup

The Intercom.io API Secret was being used inplace of the Key for event reporting
