auth: Store the tiny.cc credentials as global variables

Description Usage Arguments Value Author(s) Examples

View source: R/auth.R

Description

auth stores the tiny.cc API credentials as global variables. All other functions that need these credentials rely on the global variables.

Usage

1
auth(tinycc_login, tinycc_api_key)

Arguments

tinycc_login

character, the login to tiny.cc.

tinycc_api_key

character, the API key provided by tiny.cc.

Value

Nothing. Sets global variables.

Author(s)

Philipp Ottolinger

Examples

1
2
3
4
5
6
# Store the credentials as global variables
auth(tinycc_login = "foo", tinycc_api_key = "bar")

# Just to be sure
Sys.getenv("TINYCC_LOGIN")
Sys.getenv("TINYCC_API_KEY")

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