Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

Put data from http get to a database

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>