Web API change (POST & HTTPS required)Answered

I notice that you are planning to change the API to only accept Post over HTTPS and I have been changing our software to use this. The limelm.test.echo test function already requires this.

I had some intial problems when sending feature details because of the duplicated key names: feature_name[] and feature_value[] when I want to set more than one custom field. This was because the https component I used required unique key names.  I think I have solved this problem but I can't be sure because when I call the limelm.test.echo method with two custom field specifications it only echos the second one back to me. Is this a bug or am I missing something?

limelm.test.echo should output exactly what was passed in. We'll look into in to verify it's functioning correctly.

This shows what I mean :

Command:

curl -d "method=limelm.test.echo&api_key=*My API KEY*&feature_name[]=NAME1&feature_value[]=VALUE1&feature_name[]=NAME2&feature_value[]=VALUE2" https://wyday.com/limelm/api/rest/

Response:

<?xml version="1.0" encoding="utf-8"?>
<rsp stat="ok"><q>/limelm/api/rest/</q><method>limelm.test.echo</method><api_key>*My API KEY*</api_key><feature_name>NAME2</feature_name><feature_value>VALUE2</feature_value></rsp>

Where is feature1 in the response?

, edited
Answer

Use the JSON format to get more accurate "echo" of what you're POSTing.

, edited