set_bearer: Set bearer token

View source: R/set_bearer.R

set_bearerR Documentation

Set bearer token

Description

This function lets the user add their bearer token to the .Renviron file.

Usage

set_bearer()

Details

It is in general not safe to 1) hard code your bearer token in your R script or 2) have your bearer token in your command history.

set_bearer opens the .Renviron file for the user and provides instructions on how to add the bearer token, which requires the addition of just one line in the .Renviron file, following the format TWITTER_BEARER=YOURTOKENHERE.

Replace YOURTOKENHERE with your own token.


academictwitteR documentation built on March 18, 2022, 6:41 p.m.