Description Usage Arguments Value Examples
View source: R/ooi_submit_request.R
Submit data request to OOINet.
1 | ooi_submit_request(url, user, token)
|
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. |
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.
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')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.