avatar: Retrieve a Blog Avatar.

Description Usage Arguments Details Value Author(s) References Examples

View source: R/avatar.R

Description

Get the url of a blog's avatar.

Usage

1
avatar(base_hostname = NA, size = 64)

Arguments

base_hostname

The standard or custom blog hostname. See Details.

size

The size of the avatar (square, one value for both length and width). Must be one of the values: 16, 24, 30, 40, 48, 64, 96, 128, 512.

Details

Each blog has a unique hostname. The hostname can be standard or custom. Standard hostname: the blog short name + .tumblr.com. Custom hostname: Anything at all, as determined by a DNS CNAME entry.

Value

If the download succeeded, the url of the blog'avatar has returned, otherwise an error is encountered.

Author(s)

Andrea Capozio

References

https://www.tumblr.com/docs/en/api/v2

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
## you must specify a real blog for base_hostname

size <- 48
base_hostname <- "blogname.tumblr.com"

avatar(base_hostname = base_hostname, size = 48)

## End(Not run)

tumblR documentation built on March 18, 2020, 5:09 p.m.

Related to avatar in tumblR...