get_notifications: Get notifications

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/get_notifications.r

Description

Get a specific notification or all notifications

Usage

1
get_notifications(id = NULL, only_new = FALSE, ...)

Arguments

id

A conversation ID. If NULL, all notifications (or all new notifications, depending on only_new) are returned.

only_new

A logical indicating whether only new notifications should be returned. Default is FALSE.

...

Other arguments passed to HTTP request functions, for example: token (an OAuth2.0 token), which is required.

Details

Retrieves a named notification, possibly returned by get_notifications, or all (new) notifications.

Value

An object of class “imgur_notification”.

Author(s)

Thomas J. Leeper

See Also

mark_notification

Examples

1
2
3
4
5
## Not run: 
tkn <- imgur_login()
get_notifications(only_new = TRUE, token = tkn)

## End(Not run)

imguR documentation built on May 2, 2019, 4:02 p.m.