cancel
Showing results for 
Search instead for 
Did you mean: 

Not closed double quotes cause a bug in API v2

Established Member

Not closed double quotes cause a bug in API v2

Hello!

 

If you try to create Add & Update Contacts Activity(https://api.constantcontact.com/v2/activities/addcontacts) with not closed double quotes it will cause a join in fields.

 

Example data

{
	"import_data": [{
		"first_name": "KondraT",
		"email_addresses": ["kirill.kondratenko@farlex.ch"],
		"addresses": [],
		"custom_fields": [{
			"name": "Custom Field 1",
			"value": "<img alt=\"Your profile\" "
		},
		{
			"name": "Custom Field 2",
			"value": "src=\"http://someurl.com/"
		},
		{
			"name": "Custom Field 3",
			"value": "\" />"
		}]
	}],
	"lists": ["3"],
	"column_names": ["EMAIL",
	"FIRST NAME",
	"CUSTOM FIELD 1",
	"CUSTOM FIELD 2",
	"CUSTOM FIELD 3"]
}

 You will get: http://petromi.com/get/0ByExMbRasSI8cGlPalN6TkstOW8

 

Any help or suggestions?

 

Thank you in advance!

 

 

1 REPLY 1
Highlighted
CTCT Employee

Re: Not closed double quotes cause a bug in API v2

That's interesting!  Let me check with the team and see what I can find out on this as well as work towards getting a solution :)

-------------------------------------------
Check out our developer portal: http://developer.constantcontact.com