Description Usage Arguments Details Value References Examples
View source: R/core_articles_history.R
Get article history
1 2 3 | core_articles_history(id, page = 1, limit = 10, key = NULL, parse = TRUE, ...)
core_articles_history_(id, page = 1, limit = 10, key = NULL, ...)
|
id |
(integer) CORE ID of the article that needs to be fetched. One or more. Required |
page |
(character) page number (default: 1), optional |
limit |
(character) records to return (default: 10, minimum: 10, maximum: 100), optional |
key |
A CORE API key. Get one at
https://core.ac.uk/api-keys/register. Once you have the key,
you can pass it into this parameter, or as a much better option,
store your key as an environment variable with the name
|
parse |
(logical) Whether to parse to list ( |
... |
Curl options passed to |
core_articles_history
does the HTTP request and parses,
while core_articles_history_
just does the HTTP request, gives back JSON
as a character string
core_articles_history_
returns a JSON string on success.
core_articles_history
returns a list (equal to id
length) where each
element is a list of length two with elements for data and status of
the request; on failure the data slot is NULL.
https://core.ac.uk/docs/#!/articles/getArticleHistoryByCoreId
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
core_articles_history(id = 21132995)
ids <- c(20955435, 21132995, 21813171, 22815670, 14045109, 23828884,
23465055, 23831838, 23923390, 22559733)
res <- core_articles_history(ids)
vapply(res, function(z) z$data$datetime[1], "")
# just http request, get text back
core_articles_history_(21132995)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.