Gmailr last date in label [gm_label problem]

57 Views Asked by At

generally i need to get last (the oldest) date of message from each user label. I have list of id from my search query (today messages) but i cant even get label by gm_label:

id (list with all ids that match to search message)
label <- sapply(id, gm_label)

OR by simple

gm_label(id = "17f87906d3246714")

I get error:

Error in gmailr_GET(c("labels", id), user_id) : Gmail API error: 404
  Requested entity was not found.

gm_labels work fine but i think i need gm_label to my task

0

There are 0 best solutions below