$http({
url: 'https://myURL.com/api/',
method: "POST",
data: { 'YTParam' : 'test' }
})
.then(function(response) {
console.log(response.data);
},
function(response) { // optional
// failed
}
);
$http({
url: 'https://myURL.com/api/',