Class: Socketlab::MessageOpenClick

Inherits:
SocketlabRequest show all
Defined in:
lib/socketlab/message_open_click.rb

Instance Attribute Summary

Attributes inherited from SocketlabRequest

#api_password, #api_response, #api_server, #api_user, #api_version, #count, #error, #items, #query_params, #timestamp, #total_count, #total_pages

Instance Method Summary collapse

Methods inherited from SocketlabRequest

#initialize, #set_query_params_type, #set_request_options, #socketlab_request, #success?

Constructor Details

This class inherits a constructor from Socketlab::SocketlabRequest

Instance Method Details

#api_request(query = {:type=>"JSON"}) ⇒ Object

JSON, JSONP, XML or CSV date_format yyyy-mm-dd hh:mm:ss If the time is omitted it will default to 00:00:00. query= timeZone offset, mailingId=>“”,:messageId=>“”,:index=>“”,:count=>“”:type=>“JSON”



7
8
9
10
# File 'lib/socketlab/message_open_click.rb', line 7

def api_request(query={:type=>"JSON"})
  @query_params = query
  socketlab_request("messagesOpenClick")
end

#set_responseObject

Assuming type is json



13
14
15
# File 'lib/socketlab/message_open_click.rb', line 13

def set_response
  super(MessageOpenClickItem)
end