ficonabses 0.1.8 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -52,7 +52,12 @@ module FiconabSES
52
52
  f=FiconabSES::Base.new
53
53
  f.set_credentials(account,password)
54
54
  f.send_template_params(destination,templatename,options)
55
- end
55
+ end
56
+ def self.send_campaign_flow_direct(account,password,destination,templatename,options={})
57
+ f=FiconabSES::Base.new
58
+ f.set_credentials(account,password)
59
+ f.send_campaign_flow(destination,templatename,options)
60
+ end
56
61
  def perform(url)
57
62
  @uri=URI.parse(url)
58
63
  raise 'credentials not set' if @account==nil
@@ -90,7 +95,7 @@ module FiconabSES
90
95
  url
91
96
  end
92
97
  def campaign_flow_params(destination,templatename,options)
93
- url="#{self.action_url('ficonabcampaignflow',destination)}&template=#{URI.encode(templatename)}&#{options.to_param}"
98
+ url="#{self.action_url('ficonabcampaignflow',destination)}&campaignflow=#{URI.encode(templatename)}&#{options.to_param}"
94
99
  url
95
100
  end
96
101
  def html_url(destination,subject,contents,html)
@@ -55,5 +55,15 @@ class TestFiconabses < Test::Unit::TestCase
55
55
  assert false==(res.include? 'Error')
56
56
 
57
57
  end
58
+ def test_local_campaign_flow
59
+ options={}
60
+ options['hello']='TESTING'
61
+ options['bcinfo']='+6590683565'
62
+ res =@f.send_campaign_flow(@destination,'testcampaign',options) #no text portion
63
+ puts "RES is: #{res}"
64
+ assert res.include? '200'
65
+ assert false==(res.include? 'Error')
66
+
67
+ end
58
68
 
59
69
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 1
8
- - 8
9
- version: 0.1.8
7
+ - 2
8
+ - 0
9
+ version: 0.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Scott Sproule
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-01-19 00:00:00 +08:00
17
+ date: 2012-01-24 00:00:00 +08:00
18
18
  default_executable:
19
19
  dependencies: []
20
20