代码之家  ›  专栏  ›  技术社区  ›  Question Mark

在活动监视器中重新订阅电子邮件地址

  •  1
  • Question Mark  · 技术社区  · 16 年前

    是否有人在通过活动监视器API取消订阅后成功重新订阅电子邮件地址。

    我想在我的CM活动列表中保留活动用户的电子邮件地址列表。当他们被暂停时,他们会被移除,当他们加入或在被删除前支付费用时,他们会被(重新)订阅。

    查看Rails API文档:

    # File lib/campaign_monitor.rb, line 241
        def remove_subscriber(email)
          response = @cm_client.Subscriber_Unsubscribe("ListID" => @id, "Email" => email)
          Result.new(response["Message"], response["Code"].to_i)
        end
    
    # File lib/campaign_monitor.rb, line 445
        def unsubscribe(list_id)
          response = @cm_client.Subscriber_Unsubscribe("ListID" => list_id, "Email" => @email_address)
          Result.new(response["Message"], response["Code"].to_i)
        end
    

    在CM网站上,要将订户列表中的电子邮件移动到活动列表,您需要确认您有重新订阅它们的权限,是否有人可以确定这也适用于API?

    1 回复  |  直到 16 年前
        1
  •  0
  •   Question Mark    16 年前

    我刚找到subscriber.addandersubscribe方法,在 http://campaignmonitor.rubyforge.org/