Gmailr package with attachment in Google drive

Hello my dear friends
i'm receiving gmail mails everyday that contains data from clients . I succeeded to connect to gmail and read the message. But i'm trying to download the attached google sheet an error appeared
i used

LatestClientmessage = messages("SalesReport")
Email = message(id = LatestClientmessage [[1]]$"messages"[[1]]$"id")$snippet
Sheet = gm_save_attachments(Email , path = "D:/salesautomation/File.xlsx")

the error appeared

Error in gm_save_attachments(Email, path = "D:/salesautomation/File.xlsx") : 
  has_class(x, "gmail_message") is not TRUE

Would you please help me ??
thanks in advance

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.