So, if I use CURL, it works (I get some XML 'no users found') but if I use js+ajax (with same api_token and api_action) I always get the error
<message>Required API Token Missing (api_token)</message><context>1004</context><message>Required API Action Missing (api_action)</message>
I use a common ajax Post with the following parameters:
url: 'https://[my shop].foxycart.com/api',
api_token: [my api token],
d.api_action : "customer_list"
I also tried to set different headers (content-type, accept) but no way to get some data. Am I missing something?