I need get URL to create iframe to download file. I tried to print resp.data, but it doesn't works.
Workers.query({
"id": $scope.currentUser.uuid,
},
function(resp){
var iframe = document.createElement("iframe");
iframe.setAttribute("src", "myUrlHere");
iframe.setAttribute("style", "display: none");
document.body.appendChild(iframe);
},
function(resp){
alert('failed');
}
);