Hi,
My clients username had a space in it, they removed the space so I could register for an API key, this was the other week and the custom signup form was working fine after this.
On Tuesday this week I tested the signup form and noticed it was broken.
Turns out the client had changed their username back as per instructions I gave them telling them it is a temporary measure and can be changed back afterwards, following guidance from the CC website.
Anyways, they changed it back to have a space without me realising and the signup form no longer worked, I added the correct username to the access credentials but it still never worked. I guess the API does not accept usernames with spaces in them because when we removed the space again all worked fine?
If the login name contains
If the login name contains spaces, it will need to be encoded in the request URI using the RFC 1738 standard. You can do so in PHP using the rawurlencode() function. Please note that the rest of the URI does not and cannot be encoded as it will not function. Also, you do not need to encode the login name for the API credentials.
Dan H
Support Engineer, Constant Contact
Ok thanks, my code was using
Ok thanks, my code was using urlencode() but that does not comply to RFC 1738 standard!
James Benson, PHP Developer.
Constant Contact Services: http://integrationservic.es/