Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated readme, thanks to adamjack's comments

  • Loading branch information...
commit a201c803b412c2c158148873b180786fc8702033 1 parent 0debbe7
@idris idris authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  README.md
View
2  README.md
@@ -49,7 +49,7 @@ All examples require setting up either the specific class you'll be use or the B
### Find a Contact By Email Address, Check if They're a Member of the Default List
c = ConstantContact::Contact.find_by_email('jon@example.com')
- @contact = ConstantContact::Contact.find(@contact.int_id)
+ @contact = ConstantContact::Contact.find(c.int_id) # Because Constant Contact doesn't return a full contact when searching by email
puts 'In default contact list.' if @contact.contact_lists.include?(1) # contact_lists is an array of list ids

1 comment on commit a201c80

@idris

When you search by email using the Constant Contact API, they don't return a full contact, just some key data. You can read about it here: http://developer.constantcontact.com/doc/manageContacts#search_contact_by_email

If a contact with that email exists, the query will return the contact's , the same way it would be returned when you query the contacts collection. In order to get the contact details, you need to query the contact resource itself, as described in Obtaining a Contact's Information.

Please sign in to comment.
Something went wrong with that request. Please try again.