hey there I have a question about the ruby API for an event I would like
to add that is happening in a user dashboard of ours.
Our whole site is tracked using the javascript API but there is a
particular state ''done'' that has to be completed by different
user
logging into a dashboard and clicking a checkbox which then triggers
this "done" state. There has been a hook has been set up in a model
for
callback when the state changes so now i need to use the Ruby API to
send this info to KISS
so in the model I need to walk through the object relationships and find
the user to identify when the event is reported
can it be done like this:
when :booked
KM.init("Our API KEY")
KM.identify(''auction.business.user.email'')
KM.record(''done'')
or do I need to find the user''s email with another method before
initiating the API key?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.