ooi_submit_request: Submit data request to OOINet.

Description Usage Arguments Value Examples

View source: R/ooi_submit_request.R

Description

Submit data request to OOINet.

Usage

1
ooi_submit_request(url, user, token)

Arguments

url

The request URL generated through the ooi_create_url() function, or as a string input by the user.

user

The username made available through an OOINet account, entered as a string.

token

The token made available through an OOINet account, entered as a string.

Value

A JSON response object is returned if the request is successful. If it is not successful, nothing is returned and a message with the status code is printed.

Examples

1
2
url = "https://ooinet.oceanobservatories.org/api/m2m/12576/sensor/inv/CE05MOAS/GL382/04-DOSTAM000/telemetered/dosta_abcdjm_glider_instrument?beginDT=2019-01-10T00:00:00.000Z&endDT=2019-01-31T23:59:59.999Z"
response = ooi_submit_request(url,user = 'OOI-API-USERNAME-HERE',token = 'OOI-API-TOKEN-HERE')

oceanobservatories/ooim2mr documentation built on Oct. 2, 2020, 4:29 p.m.