zot_auth: Authenticate to a Zotero account

View source: R/authenticate.R

zot_authR Documentation

Authenticate to a Zotero account

Description

Authenticate to a Zotero account (get keys)

Usage

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

## Not run: 
credentials <- zot_auth(cache = TRUE)

## End(Not run)

giocomai/zoteroR documentation built on June 12, 2025, 9:32 p.m.