Exposing the Gmail API from R.
Get the released version from CRAN:
Or the development version from github with:
my_drafts = drafts()
my_history = history(start_num)
my_labels = labels()
my_messages = messages("search query")
my_threads = threads("search query")
modify_thread(thread_id, add_labels=c("label_1"), remove_labels=c("label_2"))
By default gmailr will use a global project. However if you are going to be a heavy user and will do a lot of queries please setup your own project with the steps below. This often works best via Google Chrome.
PROJ-NAMEfrom now on.
PROJ-NAMEas Product name. Other fields can be left blank.
PROJ-NAMEagain as the name.
Use the downloaded JSON file as input to
use_secret_file(), prior to other