ns_req: Basic Nettskjema httr2 request

View source: R/ns-auth.R

ns_reqR Documentation

Basic Nettskjema httr2 request

Description

Sets the API url and access token. This is used for almost all the functionality in this package. If you want to use endpoints not yet covered by functions in the package, this is the basis function you can build from.

Usage

ns_req(...)

Arguments

...

arguments passed to ns_auth_token

Value

httr2 request

Examples

## Not run: 
ns_req() |>
 httr2::req_url_path_append("form", "me") |>
 httr2::req_perform() |>
 httr2::resp_body_json()

## End(Not run)

LCBC-UiO/nettskjemar documentation built on April 11, 2025, 11:01 p.m.