zot_create_collection: Create a collection in Zotero

Description Usage Arguments Details Value Examples

View source: R/create_collection.R

Description

Create a collection in Zotero. If a collection by the same name exists, it does not create a new one, but rather outputs the id of that collection.

Usage

1
zot_create_collection(collection_name, user = NULL, credentials = NULL)

Arguments

collection_name

Name of the collection to be added

user

Zotero userId

credentials

Either an R object created with AuthZot(store = TRUE), or an API secret key with write access created at https://www.zotero.org/settings/keys

Details

Creating a collection needs an API with write access

Value

The key of the newly created collection (or of the pre-existing collection, if already one with the same name exists) as a character vector

Examples

1
key <- zot_create_collection(user = 12345, collection_name = "ZoteroRtest", credentials = "<API>")

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