The syntax of save_attachments() function is
save_attachments(x, attachment_id = NULL, path = "", user_id = "me")
Arguments
x : message with attachment
How do I get the Message with attachment(message object) ?? I just gave the messageid taken from message header and passed it to x and I am getting the below error : x$payload : $ operator is invalid for atomic vectors
attachment_id : id of the attachment to save, if none specified saves all attachments
path : where to save the attachments
user_id : gmail user_id to access, special value of 'me' indicates the authenticated user.
Can some one help me with what value should be passed to "x"? there is no information on this gmailr package document