SGET.shim: Issue an HTTP GET request.

View source: R/shim.R

SGET.shimR Documentation

Issue an HTTP GET request.

Description

Issue an HTTP GET request.

Usage

SGET.shim(db_or_conn, resource, args = list(), err = TRUE, binary = FALSE)

Arguments

db_or_conn

scidb database connection object, _or_ its "connection" attribute

resource

(string) A URI identifying the requested service

args

(list) A list of named query parameters

err

(boolean) If true, stop if the server returned an error code

binary

(boolean) If TRUE, return binary data, else convert the result to character

Value

if binary is TRUE, the raw bytes of the response from the server; if binary is FALSE, the text of the response from the server. Stops with "HTTP error $status" if the response's HTTP status code is outside of the 200 (successful) range.


Paradigm4/SciDBR documentation built on Nov. 9, 2023, 4:58 a.m.