`Emarsys.configure` not working
Closed this issue · 1 comments
biznickman commented
When I call:
require 'emarsys'
Emarsys.configure do |c|
c.api_username = ENV['EMARSYS_USERNAME']
c.api_password = ENV['EMARSYS_PASSWORD']
c.api_endpoint = ENV['EMARSYS_API_URL'] || 'https://api.emarsys.net/api/v2'
end
And then run a test command like Emarsys::Contact.search('3',['joe@gmail.com'])
it gives me an error saying Emarsys.api_username is not set
. Am I missing something here?!?
biznickman commented
Whoops mistake on my part :)