Method: Outbound.unsubscribe

Defined in:
lib/outbound.rb

.unsubscribe(user_id, all = false, campaign_ids = nil) ⇒ Object



93
94
95
96
97
98
99
100
# File 'lib/outbound.rb', line 93

def Outbound.unsubscribe user_id, all=false, campaign_ids=nil
  if @ob == nil
    res = Result.new Outbound::ERROR_INIT, false
    @logger.error res.error
    return res
  end
  return @ob.subscription user_id, true, all, campaign_ids
end