Answer the question
In order to leave comments, you need to log in
How to include JSON.parse in a script in voximplant?
Good afternoon. There is a script on Voximlant:
...
function handleHttpConfigure(e) {
data = JSON.parse(e);
if(data.error == 2000) {
Logger.write("Error get configure");
terminate();
} else {
Logger.write("Set configure");
configure = data.data;
}
}
//Started
VoxEngine.addEventListener(AppEvents.Started, function(e) {
Logger.write('Started.');
Net.httpRequest(setting.url+api.configure.method+"?sk="+setting.sk, handleHttpConfigure);
});
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question