Sha256: 3c97a08567f87c0fdb85fc3f25eb82da30066545458bd10d234407460ffbd8d2
Contents?: true
Size: 767 Bytes
Versions: 1
Compression:
Stored size: 767 Bytes
Contents
module ETAPI class Session def email_retrieve_body(*args) # options options = args.extract_options! @email_id = options[:email_id] # check for required options required_options = ["email_id"] return false unless check_required(required_options) # merge parameters and values type = "email" method = "retrieve" @parameters = { "search_type" => "emailid", "sub_action" => "htmlemail", "search_value" => @email_id, "search_value2" => "", "search_value3" => "", } response = build_call(type, method) response.xpath("//htmlbody").text rescue false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
etapi-0.1.1 | lib/etapi/calls/email.rb |