- Joined
- Apr 8, 2014
- Messages
- 7
- Reaction score
- 0
Hi,
I have already linked my call flow to our php website and it all works ok.
My only issue is in some responses from our web server I need to get a javascript array which has an array of data in it.
It won't be a plain text.
Here is an example of one of the responses I need to get and use in the call flow:
{"Associates":[{"main_id":"123456","id":"123456","client":"123456","name":"Mr M B"}],"responseHash":"0.76736000.1396951869.82334094"}
What I need to be able to do is to have access to each single key in this Json query.
For example in the call flow I need to access name individually and using it in the future steps.
I am also able to get the respond in php array format like follow:
Array
(
[Associates] => Array
(
[0] => Array
(
[main_id] => 123456
[id] => 123456
[client] => 123456
[name] => Mr M B
)
)
[responseHash] => 0.76736000.1396951869.82334094
)
even if there is a way to work with php array that would be useful for me as well but I assume the 3CX VAD works with Javascript Expressions mostly and won't understand php at all.
Would it be possible please to help me how to work with Json and Javascript arrays in the 3CX Voice Application ?
That would be much appreciated if you could help please.
Thanks
I have already linked my call flow to our php website and it all works ok.
My only issue is in some responses from our web server I need to get a javascript array which has an array of data in it.
It won't be a plain text.
Here is an example of one of the responses I need to get and use in the call flow:
{"Associates":[{"main_id":"123456","id":"123456","client":"123456","name":"Mr M B"}],"responseHash":"0.76736000.1396951869.82334094"}
What I need to be able to do is to have access to each single key in this Json query.
For example in the call flow I need to access name individually and using it in the future steps.
I am also able to get the respond in php array format like follow:
Array
(
[Associates] => Array
(
[0] => Array
(
[main_id] => 123456
[id] => 123456
[client] => 123456
[name] => Mr M B
)
)
[responseHash] => 0.76736000.1396951869.82334094
)
even if there is a way to work with php array that would be useful for me as well but I assume the 3CX VAD works with Javascript Expressions mostly and won't understand php at all.
Would it be possible please to help me how to work with Json and Javascript arrays in the 3CX Voice Application ?
That would be much appreciated if you could help please.
Thanks