fact_token: OAuth

Description Usage Arguments Value Examples

Description

Create an OAuth token.

Usage

1
fact_token(token = Sys.getenv("FACTCHECK_TOKEN"), id, secret)

Arguments

token

A previously generated token or the path to the saved RDS file.

id, secret

Your credentials.

Value

Invisibly returns an object of class Token2.0.

Examples

1
2
3
4
5
6
7
## Not run: 
token <- fact_token(id = "XxxXXXxxxX", secret = "XXxxXxX")

# In future sessions pass Token  object
fact_token(token)

## End(Not run)

news-r/factcheck documentation built on June 26, 2019, 1:19 p.m.