execute: Execute imap request.

Description Usage Arguments Value Examples

View source: R/execute.R

Description

Execute imap request.

Usage

1
execute(imap, filename = NULL, ...)

Arguments

imap

imap object

filename

if given, response will be written to disk

...

optional parameters passed to curl like ssl_verifypeer = FALSE (see codecurl_options)

Value

list containing url of request and content OR filename

Examples

1
2
3
4
5
6
7
## Not run: 
   imap <- IMAP("imaps://imap.gmail.com") %>%
      user("name", "pwd")
   response <- imap %>% LIST() %>% execute()
   cat(response$content)

## End(Not run)

crazycapivara/imapr documentation built on May 14, 2019, 11:32 a.m.