I'm working on a Google Chrome extension to notify users when I publish Youtube video. There is only a background script. I would like to do it without any authentification, but I didn't find how. Would it be possible to use something like this code?
var xhr = new XMLHttpRequest();
xhr.open('GET', requestJSON, true);
xhr.onreadystatechange = function()
{
if (xhr.readyState == 4 && xhr.status == 200)
{
var response = JSON.parse(xhr.responseText);
// if new youtube video then notify
}
}