class Totango::Event
Attributes
help.totango.com/installing-totango/quick-start-http-api-server-side-integration/
Sending an event to Totango
The HTTP API can be used to track user-activity from anywhere in your web-app. Simply send the following parametrized HTTP request every time a user performs an important user-action.
help.totango.com/installing-totango/quick-start-http-api-server-side-integration/
Sending an event to Totango
The HTTP API can be used to track user-activity from anywhere in your web-app. Simply send the following parametrized HTTP request every time a user performs an important user-action.
help.totango.com/installing-totango/quick-start-http-api-server-side-integration/
Sending an event to Totango
The HTTP API can be used to track user-activity from anywhere in your web-app. Simply send the following parametrized HTTP request every time a user performs an important user-action.
help.totango.com/installing-totango/quick-start-http-api-server-side-integration/
Sending an event to Totango
The HTTP API can be used to track user-activity from anywhere in your web-app. Simply send the following parametrized HTTP request every time a user performs an important user-action.
help.totango.com/installing-totango/quick-start-http-api-server-side-integration/
Sending an event to Totango
The HTTP API can be used to track user-activity from anywhere in your web-app. Simply send the following parametrized HTTP request every time a user performs an important user-action.
help.totango.com/installing-totango/quick-start-http-api-server-side-integration/
Sending an event to Totango
The HTTP API can be used to track user-activity from anywhere in your web-app. Simply send the following parametrized HTTP request every time a user performs an important user-action.
Public Class Methods
# File lib/totango/event.rb, line 14 def initialize(options) options.each do |option_name, option_value| self.send("#{option_name}=", option_value) end end
Public Instance Methods
# File lib/totango/event.rb, line 20 def query_options { :sdr_s => service_id, # API identifier of your account on Totango :sdr_u => username, # Email address of the username performing the action :sdr_o => account_id, # Unique ID of the end-user’s account on your application :sdr_odn => account_name, # A human readable name for the account (will be used on Totango’s UI and reports) :sdr_a => activity, # Name of the activity the user performed :sdr_m => self.module, # Name of the module the user is using within the application } end
# File lib/totango/event.rb, line 31 def to_url URI::HTTP.build({ :host => 'sdr.totango.com', :path => '/pixel.gif/', :query => URI.encode_www_form(query_options) }).to_s end