Learn R Programming

previsionio (version 11.7.0)

pio_request: Request the platform. Thanks to an endpoint, the url and the API, you can create request.

Description

Request the platform. Thanks to an endpoint, the url and the API, you can create request.

Usage

pio_request(endpoint, method, data = NULL, upload = FALSE)

Arguments

endpoint

end of the url of the API call.

method

the method needed according the API (Available: POST, GET, DELETE).

data

object to upload when using method POST.

upload

used parameter when uploading dataset (for encoding in API call), don't use it.

Value

list - response from the request.

Examples

Run this code
# NOT RUN {
pio_request(paste0('/jobs/', experiment$jobId), DELETE)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab