amcat.getURL: Retrieve a single URL from AmCAT with authentication and...

Description Usage Arguments Value

View source: R/amcatr.r

Description

Retrieve a single URL from AmCAT with authentication and specified filters (GET or POST)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
amcat.getURL(
  conn,
  path,
  filters = NULL,
  post = FALSE,
  post_options = list(),
  error_unless_200 = TRUE,
  null_on_404 = FALSE,
  binary = FALSE,
  verbose = TRUE
)

Arguments

conn

the connection object from amcat.connect

path

the path of the url to retrieve (using the host from conn)

filters

a named vector of filters, e.g. c(project=2, articleset=3)

post

use HTTP POST instead of GET

Value

the raw result


amcat/amcat-r documentation built on Dec. 26, 2021, 3:12 a.m.