fetch_email: Get the contents of an email

Description Usage Arguments Value Author(s) See Also Examples

Description

Get the contents of an email.

Usage

1
fetch_email(sid_token, email_id)

Arguments

sid_token

character, session ID token returned from get_email_address.

email_id

integer, the id of the email to fetch.

Value

A list, representing the API response.

Author(s)

Philipp Ottolinger

See Also

https://www.guerrillamail.com/GuerrillaMailAPI.html

Examples

1
2
3
4
5
6
7
8
## Not run: 
library(guerrillamail)
address <- get_email_address()
mailbox <- check_email(sid_token = address$sid_token, seq = 0)
message <- fetch_email(sid_token = address$id_token, email_id = min(mailbox$list$mail_id))
message

## End(Not run)

ottlngr/guerrillamail documentation built on May 23, 2019, 5:07 p.m.