Import Contact List

bryananaya

Beginner
re: https://developers.mumara.com/Campaigns/API#operation/Import-Contact-list

I am trying to import a csv via this API call but it keeps telling me
The GET method is not supported for route api/importContacts. Supported methods: POST
but I am using POST. I have tried your sample script of
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
in PHP.

In other places I am using the following for POST and it works.
curl_setopt($ch, CURLOPT_POST, true);
When I use that I get the following curl Error with this call.
The requested URL returned error: 500
I checked on my Mumara server for the 500 error and didn't see anything in the logs. I checked on the server sending the request and no errors there either. Any ideas?
 
I was using "computer" to import the list and switched to server and it works. Assuming something to do with the path of the file was the problem.
 
Back
Top