utendo Posted April 25, 2020 Report Share Posted April 25, 2020 Hello, I am looking to delete entries from the address book via the PHP API. There must be an error in the example given on "https://doc.vodia.com/vodia_php_rest_api". The sample command " $vodiaObj->domainAction("localhost", array("type" => "trunks", "action" => "delete_selected", "selected" => "45")); " does not delete a contact. This command is also used to remove a trunk. I think there is an error in the help page. What type should be specified in the order to delete an entry from the address book? Thank you Quote Link to comment Share on other sites More sharing options...
Support Posted April 27, 2020 Report Share Posted April 27, 2020 Hi, Which version of the PBX are you on? Have you checked out our new API page https://api.vodia.com/ ? Quote Link to comment Share on other sites More sharing options...
utendo Posted April 28, 2020 Author Report Share Posted April 28, 2020 Hi, Version 62 and 65. I checked https://api.vodia.com , but I developed everything in PHP. I am missing the type to put in the command ($vodiaObj->domainAction("localhost", array("type"=>"trunks" ) instead of trunks. Quote Link to comment Share on other sites More sharing options...
Support Posted April 29, 2020 Report Share Posted April 29, 2020 Try "adrbook" instead of "trunks" Quote Link to comment Share on other sites More sharing options...
utendo Posted April 29, 2020 Author Report Share Posted April 29, 2020 Already tried and it doesn't work Quote Link to comment Share on other sites More sharing options...
Support Posted April 29, 2020 Report Share Posted April 29, 2020 If you downgrade one of your test server's to version 57.3.13 and "inspect element" for deleting that address book entry, I think that can give you a better picture of the API's as those were the times when we last used it. We won't be able to downgrade our test servers at this point as we're running several tests with it currently unfortunately. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.