nateleavitt / infusionsoft

Ruby Gem for the Infusionsoft API
MIT License
58 stars 70 forks source link

Adding Contact To Campaign Failing #8

Closed efatsi closed 12 years ago

efatsi commented 12 years ago

Hi, I've been working with this gem for the past few days and it's been really great so far. I'm running into an odd problem attempting to add a contact to a campaign through the gem.

> Infusionsoft.contact_add_to_campaign(5555, 5)
 => nil 

I'd looked at the documentation and was expecting true or false depending on if the campaign adding was a success or not, but no matter what I do with this function I get nil.

Any thoughts as to what this could be?

efatsi commented 12 years ago

Discovered the problem. Nothing to do with your gem - Infusionsoft has recently changed the naming conventions in place. A Campaign currently means something else on Infusionsoft's end then it did at the time this gem was written. What Campaigns used to be I believe is now referred to as a Follow-Up Sequence.

If anyone else happens to stumble upon this problem through Google -- You can still add a Contact to a Campaign by editing the Campaign on the Campaign Builder to be triggered when a Tag is applied, and then apply the tag using this gem. Since Infusionsoft has also changed the name of 'Tags' recently from 'Groups', you'll use the contact_add_to_group(contact_id, tag_id) method.

sneakernets commented 7 years ago

Has this been corrected? I'm using this gem specifically to add contacts to campaigns.