@fabiobalsamo wrote:
Hi, with this code i retreive dat from http get method, I want to put the data in a database...how can i do?
$scope.chiamataUno = function() {
var authdata = Base64.encode("XXX" + ":" + "XXX");
$http.defaults.headers.common["Authorization"] = "Basic " + authdata;
$http.get('http://demvsint-as1-sd.services.eni.intranet:8001/CaseManager/P8BPMREST/p8/bpm/v1/queues/DV_ResponsabileBSDL/workbaskets/Responsabile BSDL/queueelements/?cp=DCMSVS_CONN1').success(function(response) {
console.log(response);var newArray = []; for(var i=0;i<response.queueElements.length;i++) { var newObject = { elementi:response.queueElements[i], caseFolderId:response.queueElements[i].caseFolderId, caseTaskId:response.queueElements[i].caseTaskId, stepName:response.queueElements[i].stepName, columns:response.queueElements[i].columns }; newArray.push(newObject);
Posts: 1
Participants: 1