R/manage_credentials.R

Defines functions load_twitter_oath load_bitly_oath

# Just a wrapper to set up twitteR oath
load_twitter_oath <- function(consumer_key,consumer_secret,access_token,access_secret){
  library(twitteR)
  setup_twitter_oauth(consumer_key,
                      consumer_secret,
                      access_token,
                      access_secret)
}

# Just a wrapper to load bit.ly oath
load_bitly_oath <- function(oath){
  library(RBitly)
  rbitlyApi(oath)
}
rweyant/rmd2wp documentation built on May 28, 2019, 10:43 a.m.