i have following gmail api script:
function listmsgs() { var response = gmail.users.messages.list('me'); logger.clear(); for(var i=0; i<response.messages.length; i++) { var message = response.messages[i]; var response1 = gmail.users.messages.get({ 'userid': 'me', 'id': message.id, 'format': 'full' }); logger.log("1) %s", message.id); logger.log("2) %s", message.threadid); logger.log("3) %s", response1.snippet); } }
i error invalid number of arguments provided. expected 2-3 (line 7, file "code")
can assist script? thank you.
you error invalid number of arguments provided. expected 2-3 (line 7, file "code") means number of arguments in call procedure wasn't same number of required arguments expected procedure. check argument list in call against procedure declaration or definition. it's stated in so question can use advanced gmail service allows scripts find , modify threads, messages, , labels in gmail mailbox. remember service must enabled before use. hope helps!
Comments
Post a Comment