knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

tinycc

Travis-CI Build Status AppVeyor Build Status Coverage status

Use the tiny.cc API to shorten URLs!

API Key

You will need to use an API Key in order to access the tiny.cc API. You will receive an API Key after signing up at tiny.cc.

Rate Limiting

Development requests are limited to 50 per day, and no more than 5 concurrent requests from a single IP address at a time.

API Methods

Examples

Sign up and store credentials

# After creating an account at https://tiny.cc/, you can store your credentials using auth()
library(tinycc)

auth("your_login", "your_api_key")

Use the API

library(tinycc)

hash <- paste0(sample(c(LETTERS, letters, 0:9), 6, TRUE), collapse = "")
hash

# shorten https://ropensci.org/

shorten(longURL = "https://ropensci.org/", shortURL = hash)

See also

https://tiny.cc/api-docs



ottlngr/tinycc documentation built on May 23, 2019, 1:10 p.m.