Can someone please tell me why this doesn't work:
list = CampaignMonitor::List.new('0123456789')
Here is what I get:
/usr/lib/ruby/1.8/campaign_monitor/result.rb:7:in `initialize': undefined method `' for #<CampaignMonitor::Result:0xb7c4d5f8 @message="Success", @code=0> (NoMethodError)
from ./test2:4:in `new'
Thanks very much for any input. I think this is about my last hurdle on this thing.
I'll answer my own question just in case someone else has this problem.
The reason is that one doesn't do it that way. To get at the result codes, do something like this:
Well answered Doug!
I recommend stashing the result in a variable, and getting the code from the result object.
result = list.add_subscriber('email@example.com','John Doe')
From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that drive real business results.Get started for free