1

有人能帮我吗?

我正在使用 set_contact_customs() GetResponse API 函数。它有效,但是有人可以解释当在多个活动中订阅同一个电子邮件地址时会发生什么?

例如,我想为用户邮件 AT mail.com 设置字段 'bought' 和字符串 '3'

如果用户邮件 AT mail.com 订阅了两个活动,那么 set_contact_customs() 会影响哪个活动?

set_contact_customs() 不将活动作为参数(文档:http ://apidocs.getresponse.com/en/api/1.5.0/Contacts/set_contact_customs ),因此如果您只想为一个活动设置自定义字段你怎么办?

我试过这个:

$result_set = $client->set_contact_customs(
        $api_key,
            array (
            'contact' => $ee_cont_id,
            'customs' => array(
                array(
                'name' => $param_name,
                'content' => $param_value
                )
            )
            )
        );

它只影响了一场竞选,但没有影响我想要的那一场。

谢谢

4

2 回答 2

2

如果您将一个电子邮件地址添加到两个活动,这将产生两个具有不同 CONTACT_ID 的不同“联系人”。

set_contact_customs() 不将活动作为参数,因为一个 CONTACT_ID“属于”仅一个活动。

于 2015-03-05T15:29:15.107 回答
1

I tested it now, indeed the same customer with the same email address has different contact id in different campaigns.

So as I said here: Getresponse API 2 (Adding Custom fields and contacts using PHP)

you should first call get_contacts with the desired campaign name or id, and the customer email address. Then the contact id you will get from there, you will send to set_contact_customs.

Good luck! :)

于 2016-04-22T03:03:09.067 回答