1. Bicom Systems
  2. Solution home
  3. PBXware
  4. HOWTOs

PBXware Dialer API :: HOWTOs PBXware Dialer API

With below request you can get list of Dialler campaigns by simply entering the address in your browsers address bar:

http://YOUR.IP.ADDRESS/index.php?apikey=YOUR.API.KEY&action=pbxware.dialer.campaigns&apiformat=jsonf&server=1

NOTE:

Make sure to always replace YOUR.IP.ADDRESS and YOUR.API.KEY with values specific for your system.

Response should look like this:

{
"1": "test1",
"4": "test2",
"5": "test3",
"6": "agentcom"
}

Now when you have ID of your campaign, you can list CSV files per campaign:

http://YOUR.IP.ADDRESS/index.php?apikey=YOUR.API.KEY&action=pbxware.dialer.csvfiles&campid=6&apiformat=jsonf&server=1

In above example we are using id=6 to list files for campaign "agentcom".

Response should be like this:

{
"23": {
"name": "dial_test.csv",
"campid": "6",
"form_fields": "number,name,address"
}
}

To add a number to the CSV file:

http://YOUR.IP.ADDRESS/index.php?apikey=YOUR.API.KEY&action=pbxware.dialer.csvfiles&campid=6&csvid=23&csv=111,name,adress&numberfield=1&apiformat=jsonf&server=1

This one is probably most complicated. In previous response you got; "form_fields": "number,name,address" So your "csv" field value should look like

"your_number,your_name,your_address"

for example:

"38763925947,John,Chicago"

and in "numberfield" you should set column with number, just like when uploading CSV file: in this case it's 1.