Usage
pbPost(type = c("note", "link", "file"), title = "", body = "", url = "", filetype = "text/plain", recipients, email, channel, deviceind, apikey = .getKey(), devices = .getDevices(), verbose = FALSE, debug = FALSE)
Arguments
type
The type of post: one of note, link, or file.
title
The title of the note being posted.
body
The body of the note or the (optional) body when the type
is link.
url
The URL of type
is link, or the local
path of a file to be sent if type
is file.
filetype
The MIME type for the file at url
(if
type
is file) such as text/plain or image/jpeg,
defaults to text/plain.
recipients
A character or numeric vector indicating the
devices this post should go to. If missing, the default device
is looked up from an optional setting, and if none has been set
the push is sent to all devices.
email
An alternative way to specify a recipient is to specify
an email address. If both recipients
and email
are
present, recipients
is used.
channel
A channel tag used to specify the name of the channel
as the recipient. If either recipients
or email
are present,
they will take precedence over channel
.
deviceind
(Deprecated) The index (or a vector/list of indices) of the
device(s) in the list of devices.
apikey
The API key used to access the service. It can be
supplied as an argument here, via the global option
rpushbullet.key
, or via the file ~/.rpushbullet.json
which is read at package initialization (and, if found, also sets
the global option).
devices
The device to which this post is pushed. It can be
supplied as an argument here, or via the file
~/.rpushbullet.json
which is read at package
initialization.
verbose
Boolean switch to add additional output
debug
Boolean switch to add even more debugging output