Closed
Description
My "unsubscribe from lists" code fails since I updated to mailjet-gem 1.5, the problem is still present with 1.5.1 :
l = ::Mailjet::Contactslist.all(name: "MyNewsletter", limit: 1).first
lr = ::Mailjet::Listrecipient.all('ContactsList' => l.id, 'Email' => '[email protected]', limit: 1).first
lr.is_unsubscribed # false
lr.is_unsubscribed = true
lr.is_active = false
lr.save
ArgumentError: wrong number of arguments (given 0, expected 1)
from /home/pierre/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/mailjet-1.5.1/lib/mailjet/resource.rb:246:in `save'
Metadata
Metadata
Assignees
Labels
No labels