bitly_expand_link | R Documentation |
See https://dev.bitly.com/api-reference/#expandBitlink This endpoint returns public information for a Bitlink.
bitly_expand_link(bitlink_id = NULL, showRequestURL = FALSE)
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. |
long_url - a full URL to which bitlink points to
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.