You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function sendLog(newvideos){
var recipient = Session.getActiveUser().getEmail();
var subject = 'YT2Discord Log: ' + newvideos + 'new videos.';
var body = Logger.getLog();
MailApp.sendEmail(recipient, subject, body);
}
When running a script, I'm usually asked for permissions, but here I'm not, and therefore getting this error message:
Exception: You do not have permission to call Session.getActiveUser. Required permissions: https://www.googleapis.com/auth/userinfo.email
sendLog @ sendLog.gs:2
updatePlaylists @ Code.gs:200
The text was updated successfully, but these errors were encountered:
Hey, I tried adding this:
When running a script, I'm usually asked for permissions, but here I'm not, and therefore getting this error message:
The text was updated successfully, but these errors were encountered: