zot_auth: Authenticate to a Zotero account

Description Usage Arguments Details Value Examples

View source: R/authenticate.R

Description

Authenticate to a Zotero account (get keys)

Usage

1
zot_auth(cache = TRUE)

Arguments

cache

Logical, defaults to TRUE If TRUE, it stores the credentials in the working diretory in a file called "zotero_credentials.rds", which should be considered confidential since it provides access to a given Zotero account.

Details

The verification code that appears at the end of the URL after authorization in browser should be input as verification PIN. If the parametere cache is enabled - zot_auth(cache=TRUE) - zoteroR stores the credentials in a local file called "zotero_credentials.rds", which should be considered confidential since it provides access to a given Zotero account. If a pre-existing "zotero_credentials.rds" exists, it is loaded automatically.

Value

A OAuth object including the Zotero API key.

Examples

1
credentials <- zot_auth(cache=TRUE)

giocomai/zoteroR documentation built on Feb. 23, 2020, 9:52 a.m.