Page 1 of 1

Add lead to hopper using API

PostPosted: Tue Sep 19, 2017 12:28 pm
by DefLeppard
Hello,

I am trying to add a lead to the hopper via the API using the update_lead API function. The following is the API URL I am using:
http://serverip/vicidial/non_agent_api. ... o_update=Y

The output I see is the following:
NOTICE: update_lead LEADS FOUND IN THE SYSTEM: |apiuser|||8003333330|2001|7001

The lead is never added to the hopper. Please advise as to how I can resolve this.

Vicibox 4.0.3
VERSION: 2.12-574a BUILD: 161106-2058
SVN: 2613

Re: Add lead to hopper using API

PostPosted: Tue Sep 19, 2017 2:30 pm
by mflorell
Your version doesn't have that feature, you will need to upgrade to a more recent svn/trunk version.

Re: Add lead to hopper using API

PostPosted: Tue Sep 19, 2017 7:23 pm
by blackbird2306
It's highly recommended that you update, but a quick solution would be to download a current file from here:

http://www.vicidial.org/svn_trunk_nightly/

and then replace the old version of "non_agent_api.php" with the new one.
But this approach is at your own risk. Somehow there could be some new tables referred to in the database and so on...

Re: Add lead to hopper using API

PostPosted: Tue Sep 19, 2017 8:14 pm
by mflorell
We DO NOT recommend just replacing old svn files with newer svn files without going through the upgrade process.

In this specific case, it won't work, there were major changes in authentication and the database schema that require the full DB schema updates to be run before running the newer code.

Re: Add lead to hopper using API

PostPosted: Mon Sep 25, 2017 3:29 am
by DefLeppard
Would it be possible for me to just add a new row to the hopper table in mysql to make this work?

Re: Add lead to hopper using API

PostPosted: Mon Sep 25, 2017 5:05 am
by mflorell
No, you need to update the database schema entirely. There are more changes than just the one involved in that script.