Join our Ask A Trainer Sessions and Chat With our Experts!

Parsing email address with plus sign

FirstNameL029140
Campaign Collaborator
0 Votes

Hi,

 

I am writing an app that connects to Constant Contact API. I noticed that whenever I tried to pass an email address with pluss addressing (some_user+test1@domain.tld), API does not parse it and returned null.

 

Do I need to encode it first? Or does the API does not support it?

Thanks,
Rudy

2 REPLIES 2
FirstNameL029140
Campaign Collaborator
0 Votes

Update

 

I was using the GetContacts API call (https://developer.constantcontact.com/api_reference/index.html#!/Contacts/getContacts)


I noticed that it passes email address as a URL query string, so it has to be URL encoded first.

 

Solution:

 

$email = urlencode($email);

 

Courtney_E
Moderator
0 Votes

Hello FirstNameL029140,

 

Thank you for reaching out to Constant Contact API Developer Support. 

 

We’re glad to hear that you were able to resolve your issue.

 

Please let us know if you have any other questions!


Regards,

Courtney E.
Tier II API Support Engineer

Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
Resources
Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Announcements

API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up