ztr_read_item: Read A Specific Item Or Child Items Under A Specific Item

Description Usage Arguments Value Examples

View source: R/api_read.R

Description

Read A Specific Item Or Child Items Under A Specific Item

Usage

1
ztr_read_item(zotero_object, item, child = FALSE, ..., timeout = 20)

Arguments

zotero_object

Zotero object.

item

Item key.

child

Specify whether to retrieve child items under a specific item. Otherwise, a specific item will be retrieved.

...

Query inputs. See Read Requests, Searching, and Sorting and Pagination in the Zotero Web API Documents for available query.

timeout

Seconds for the timeout of request (default: 20).

Value

httr::response object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
ztr <- Zotero$new("ztr4r")

# simple example
ztr %>%
  ztr_read_item(item = "foo")

# example with query: child items under a specific item
ztr %>%
  ztr_read_item(
    item = "foo", child = TRUE,
    format = "json", sort = "dateModified", direction = "asc", limit = 25, start = 0
  )

## End(Not run)

tellnnn/ztr4r documentation built on Dec. 23, 2021, 8:43 a.m.