client_gmail: Gmail client

Description Usage Arguments Details See Also Examples

View source: R/client_gmail.R

Description

Client extending the client_sendeR for the Gmail service. In addition to any fields in the client_sendeR this one contains an email, a key and a secret fields which are needed to send a message via the Gmail Send API. For additional information on how to get required credentials see details.

Usage

1
client_gmail(email, key, secret, ...)

Arguments

email

an email of a sender of the message.

key

a key created in a Google API application.

secret

a secret key created in a Google API application.

...

named arguments with additional fields which will be passed to set_fields during client creation.

Details

To get Google credentials just follow the tutorial https://developers.google.com/adwords/api/docs/guides/authentication

See Also

is.client_gmail, send_message

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
client <- client_gmail("my_email", "my_key", "my_secret")

# Variant with default parameters set
client2 <- client_gmail("my_email", "my_key", "my_secret",
                        message = "Default email template",
                        destination = "my_email")

## End(Not run)

tmakowski/sendeR documentation built on June 27, 2020, 9 p.m.