What is a basic REST call I can make, using fiddler or curl, to do simple interaction w the switchvox api, just to see that it is handling api calls?
Asked
Active
Viewed 445 times
1 Answers
2
Here is a curl example (quoted for use on curl on windows) that can be used to do this (put it all on one line):
curl -k -H "Content-Type: application/json" --data "{\"request\": {\"method\":
\"switchvox.call\",
\"parameters\": {\"dial_first\": \"1927\",\"dial_second\": \"12226660000\",
\"dial_as_account_id\": \"1127\"}}}"
--verbose --basic --user api_admin:####### https://myserver/json

Jonesome Reinstate Monica
- 6,618
- 11
- 65
- 112
-
1do you have a link where you found the decimation for this? The developer site, seems to only show XML examples and is quite dated. – Jim Hankins Mar 29 '18 at 15:35
-
1@JimHankins You are right. The dev site is in bad need of update. I don't know where we discovered the json api (another guy built this thing), but what I do is convert the xml to json, and it works. – Jonesome Reinstate Monica Mar 31 '18 at 21:22