ices_post: Post to a url

View source: R/ices_post.R

ices_postR Documentation

Post to a url

Description

Post to a url using an ICES authentication token

Usage

ices_post(url, body = list(), retry = TRUE, verbose = FALSE, use_token = TRUE)

Arguments

url

the url to get.

body

a list of named arguments to be sent as the body of the post request.

retry

should the get request be retried if first attempt fails? default TRUE.

verbose

should verbose output form the http request be returned? default FALSE.

use_token

should an authentication token be sent with the request? default is TRUE.

Value

content or an http response.

See Also

sag_api builds a SAG web service url.

icesSAG-package gives an overview of the package.

Examples

## Not run: 
ices_get(sag_api("StockList", year = 2022))

## End(Not run)

icesSAG documentation built on Oct. 30, 2024, 9:14 a.m.