form_post: Call an API using the POST method as a multipart/form-data...

View source: R/util.R

form_postR Documentation

Call an API using the POST method as a multipart/form-data request

Description

Call an API using the POST method as a multipart/form-data request

Usage

form_post(path, body, credentials = NULL, verify = T, timeout = 30)

Arguments

path

The path to the API endpoint, excluding the hub URL (and not starting with a forward slash).

body

The body of the request as json data (use 'jsonlite::toJSON(body, auto_unbox=T)').

credentials

A credentials object to authenticate with.

verify

Optional. Whether to verify the SSL certificate of the API. Defaults to TRUE.

timeout

Optional. The timeout in seconds to wait for a response. Defaults to 30.


clessn/hubr documentation built on Feb. 15, 2023, 9:32 p.m.