How to retrieve document or Video file extension from SharePoint library using COM JavaScript
but i Tried this code but Error will be like this:
$(document).ready(function()
{
LoadZipCodes();
alert("Ftc");
});
function LoadZipCodes()
{
$.ajax({ ///MyLearning/My%20Learning%20Videos/HaysLMS?Web=1
url:"http://vm-srv-hays:2015/_api/web/GetFolderByServerRelativeUrl(\'/My Learning Videos/Hays-SP2013/')/files",
method: "GET",
headers: { "Accept": "application/json; odata=verbose" },
success : function(data){ //data will have the video object
//var name = data.d.results[0].Name;
//console.log(title);
alert(JSON.stringify(data));
},
error : function(args) {
console.log(args);
}});
}