bitly_expand_link {urlshorteneR}R Documentation

Expand a Bitlink

Description

See https://dev.bitly.com/api-reference/#expandBitlink This endpoint returns public information for a Bitlink.

Usage

bitly_expand_link(bitlink_id = NULL, showRequestURL = FALSE)

Arguments

bitlink_id

- string

showRequestURL

- an optional T/F value to whether show URL which has been build and requested from server. For debug purposes, default FALSE.

Value

long_url - a full URL to which bitlink points to

Examples

## Not run: 
bitly_expand_link(bitlink_id = "bit.ly/DPetrov")
bitly_expand_link(bitlink_id = "on.natgeo.com/1bEVhwE")

## manyHashes <- list("bit.ly/DPetrov", "bit.ly/1QU8CFm", "bit.ly/1R1LPSE", "bit.ly/1LNqqva")
## for (u in 1:length(manyHashes)) {
##   print(bitly_expand_link(bitlink_id = manyHashes[[u]], showRequestURL = TRUE))
## }

## End(Not run)

[Package urlshorteneR version 1.5.7 Index]