Skip to content
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

Added tags methods #14

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

luisdalmolin
Copy link

I added the methods related to creating, listing, updating and deleting tags. Also edited the readme.

@FreeDirt
Copy link

Hello how do i add tags to my addContact?

$response = $getresponse->addContact(array(
'name' => 'test' . " " . 'lastname',
'email' => '[email protected]',
'dayOfCycle' => 0,
'campaign' => array('campaignId' => 'mytoken'),
'tags' => array('tagId' => 'myTagID'), ==> (This one is not working.)
'customFieldValues' => array(
array('customFieldId' => 'CFid',
'value' => array(
'test0'
)),
array('customFieldId' => 'CFid',
'value' => array(
'test01'
))
)
));

@luisdalmolin
Copy link
Author

You can only add tags when updating a contact. This API is terrible and they don't have any kind of developer support.

@FreeDirt
Copy link

Thanks for response sir,
by the way sir, Do you know the $params for updating the contact In API3. i've been trying to update a contact but its no use. i dont know the $params for it.

i tried using something like this?

$contact_id = $getresponse->getContacts(array(
'query' => array(
'email' => '@getresponse.com',
),
'fields' => 'name,email'
));

$update = $getresponse->updateContact(array(
'email' => $contact_id,
'dayOfCycle' => 0,
'campaign' => array('campaignId' => 'mytoken'),
'tags' => array('tagId' => 'myTagID'),
'customFieldValues' => array(
array('customFieldId' => 'CFid',
'value' => array(
'test0'
)),
array('customFieldId' => 'CFid',
'value' => array(
'test01'
))
)
));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants