Open mkalyon opened 6 years ago
Hi, I use following get function, but I couldnt get response data to outside.
var mdata=""; var url="xxxxxxx"; cordovaHTTP.get(url, {
}, { Authorization: "OAuth2: token" }, function(response) { response.data=JSON.parse(response.data); alert(response.data); // return response.data mdata=response.data; }, function(response) { alert(response.error); });
alert(mdata); // empty
First alert return response.data but second alert is empty.
How get response.data.
Thanks Best Regards
Hi, I use following get function, but I couldnt get response data to outside.
var mdata=""; var url="xxxxxxx"; cordovaHTTP.get(url, {
alert(mdata); // empty
First alert return response.data but second alert is empty.
How get response.data.
Thanks Best Regards