You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
task dev: :environment do
api_key = ENV.fetch("MAILCHIMP_API_KEY")
puts "is the api key even defined? #{api_key}"
gibbon = Gibbon::Request.new(api_key: api_key, symbolize_keys: true, debug: true)
data = gibbon.lists.retrieve
puts "response? #{data}"
end
% bundle exec rake email:dev
is the api key even defined? [[hex formatted api key]]
rake aborted!
Gibbon::GibbonError: You must set an api_key prior to making a call
The exception points to the data = gibbon.lists.retrieve line. What am I doing wrong here?
The text was updated successfully, but these errors were encountered:
I define a rake task as this:
The exception points to the
data = gibbon.lists.retrieve
line. What am I doing wrong here?The text was updated successfully, but these errors were encountered: