-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing method to update contact's customFields #17
Comments
How to update contact in GetResponse API3. $result = $client->set_contact_customs( |
Hello .. Is there any update regarding this issue ? |
Sorry, They only told me that they don’t have support for their API.
Regards,
Ryan Mendoza
DR. KLIPPE Philippines Corporation
Ryan U. Mendoza
Bldg. 11C-1 Berthaphil I Industrial Park
Jose Abad Santos Avenue
Clark Freeport Zone, Pampanga
Philippines 2023
Office: +63 45 499 0273
Mobile: +63 906 272 6950 (Globe)
Mobile: +63 998 963 6950 (Smart)
Skype: r.usi
Email: [email protected]
Web: www.dr-klippe.com
… On 15 Dec 2017, at 2:46 PM, ranjeetsingh12 ***@***.***> wrote:
Hello .. Is there any update regarding this issue ?
I am also using the API V3 & not able to update the contact's custom fields.
Please let me know if can help me out.
Thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#17 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AXcQUorUD5mCZVBqiBrJ1JD2OpWrzriZks5tAhXUgaJpZM4McMCx>.
|
The solution (or workaround) is to call
|
Thank You For you help ! I got it working :) |
Hello sir,
I can’t get it right. is there something wrong with my code? please help thank you.
$result = $getresponse->getContacts(array(
'query' => array(
'email' => '[email protected]',
),
'fields' => 'name,email,campaign,,'
));
$response = $getresponse->updateContact(array(
'contact' => $result,
'campaign' => array('campaignId' => 'Cpid'),
'customFieldValues' => array(
array('customFieldId' => CfId',
'value' => array(
'test2'
)),
array('customFieldId' => ‘CfId',
'value' => array(
'test03'
))
)
));
echo 'DONE!';
Regards,
Ryan Mendoza
DR. KLIPPE Philippines Corporation
Ryan U. Mendoza
Bldg. 11C-1 Berthaphil I Industrial Park
Jose Abad Santos Avenue
Clark Freeport Zone, Pampanga
Philippines 2023
Office: +63 45 499 0273
Mobile: +63 906 272 6950 (Globe)
Mobile: +63 998 963 6950 (Smart)
Skype: r.usi
Email: [email protected]
Web: www.dr-klippe.com
… On 19 Dec 2017, at 3:58 PM, ranjeetsingh12 ***@***.***> wrote:
Thank You For you help ! I got it working :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#17 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AXcQUrSaoHdxXpID-vRlN6wG3puix7Lgks5tB2y1gaJpZM4McMCx>.
|
Hi You should use method updateContact as in @kovinet example. updateContact as a first param requires contact id as a string. In your example it's an array. Try something like this:
BTW, this library is no longer supported and maintained. The new one is on the way. |
With the most recent API (v3?) In order to add custom fields when creating a new contact, you need to enclose the array of customFieldValues in an array! Crazy stuff! There might be a better way but I've had no response from GetResponse's support team. |
There is a missing method to only update custom fields of contact, as documented here: https://apidocs.getresponse.com/v3/resources/contacts#contacts.upsert.custom-fields
The text was updated successfully, but these errors were encountered: