QueueMetrics forum

WombatDialer => Running WombatDialer => Topic started by: terry_tate on January 08, 2018, 23:26:38

Title: HTTP API Add Numbers to List
Post by: terry_tate on January 08, 2018, 23:26:38
I'm having trouble using the "add numbers to a list" API call. I've been able to successfully add numbers using HTTP GET.  However when I use HTTP POST it will not add numbers to the call list. I receive a 200 OK response but the body of the response returns this: "\n\n\n\n\n\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n   \"http://www.w3.org/TR/html4/loose.dtd\">\n\n\n\nERROR: Unknown operation: \n\n". I have no idea what this error indicates. Can someone help me figure out what this error means?
Title: Re: HTTP API Add Numbers to List
Post by: terry_tate on January 17, 2018, 22:25:28
I was able to successfully upload leads using POST by using a content type of 'application/x-www-form-urlencoded'. I could not get json or form-data to work. Hopefully this helps someone.