VoiceGuide IVR Software Main Page
Jump to content

Calling External Http Api To Fetch Data

Recommended Posts

Hi,

 

Please I want to find out if i can use vg to call external API like below, then the response contains some values separated with some delimeter.

 

to get the account balance of account number : 04195155850

 

Request API call: http://someIP:8080/TokenServer/resources/querycustomer/04195155850

Response: 100||CallerName||phoneNumber||balance

 

So is it possible to fetch that balance and read it out to the caller. Like, "You balance is bla bla bla"

 

Bemers

Share this post


Link to post

You can use the Web Service module to issue any HTTP request and receive the response.

 

Please see: http://www.voiceguide.com/vghelp/source/html/modws.htm

 

Most XML type responses will be parsed and automatically loaded into the VoiceGuide as Result Variables that can be used for remainder of the call.

 

Please let us know if you have any questions.

 

If you can post the vgEngine trace of the Web Service module calling your service then we can see how the response from your web service is handled and what Result Variables were created etc.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×