Learn R Programming

gofigR (version 0.3.1)

gofigr_GET: Wrapper for httr::GET that automatically handles authentication.

Description

Wrapper for httr::GET that automatically handles authentication.

Usage

gofigr_GET(gf, url, expected_status_code = 200, ...)

Value

result of calling the underlying httr request function

Arguments

gf

configured GoFigr client

url

URL to make the request to, relative to the API URL e.g. user/

expected_status_code

expected HTTP response code. We will throw an exception if it differs.

...

passed to the httr request function