HI Team,
Am facing issue (404 error) while accessing office 365 videos rest api from my on premise sharepoint 2013 site. Am using jquery ajax call to get data. Both are in differenet domains.
below is my sample rest api url to get video from channel and ajax call,
Rest Api url
_api/VideoService/Channels('channelId')/Videos
Ajax Call
$.ajax({
type: 'GET',
url: url,
async: false,
crossDomain: true,
contentType: "application/json",
dataType: 'jsonp',
success: function () {
},
error: function (err) {
}
});
Thanks in ad