【问题标题】:GetResponse API tag users depening on the visited pageGetResponse API 根据访问的页面标记用户
【发布时间】:2017-10-24 07:50:23
【问题描述】:

我已将此 A​​PI:https://github.com/GetResponse/getresponse-api-php 作为组件集成到 Yii 应用程序中。

我在理解这个 API 时遇到了一些问题,所以我的问题是,我可以根据用户访问的页面来标记我的用户吗?

【问题讨论】:

  • 嗨@chandlerbing,在这件事上我没有尝试过任何东西,我不知道从哪里开始。到目前为止,我所做的是附加了一个订阅复选框。如果用户检查它,我将该用户添加到 getResponse。我会用该代码发表评论
  • 您是否想根据订阅者订阅的页面为订阅者分配自定义字段?如果您实际上是指标签,它是 GetResponse 中的不同实体,那么您需要首先添加一个订阅者,然后通过电子邮件搜索获取其 ID,并使用该 ID 分配一个标签。分配自定义字段对我来说似乎更理想。
  • 不用了,我自己解决了所有问题。

标签: php yii getresponse


【解决方案1】:

这是我将用户添加到 getresponse 的一段代码。

$wants_subscription = $_POST['getresponse_subscription'];
            if( $wants_subscription == 1 ){
                if( class_exists('GetResponse') ){
                    $get_response = new GetResponse('my-api-key');
                    $get_response->enterprise_domain = 'my-domain';
                    $get_response->api_url = 'https://api3.getresponse360.com/v3';

                    // Add contact
                    $add_contact = $get_response->addContact(array(
                        'name' => $_POST['name'],
                        'email' => $_POST['email'],
                        'daysofCycle' => 0,
                        'campaign' => array('campaignId' => 'x')

                    ));

【讨论】:

    猜你喜欢
    • 2016-10-18
    • 2018-06-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-10-26
    • 2015-10-10
    • 1970-01-01
    • 2012-09-17
    相关资源
    最近更新 更多