Learn R Programming

dataone (version 2.2.2)

auth_put_post_delete: POST, PUT, or DELETE a resource with authenticated credentials.

Description

POST, PUT, or DELETE data to a URL using an HTTP request using authentication credentials provided in a client authentication, either via authentication token or certificate. If the user does not have a valid token or certificate, request fails.

Usage

auth_put_post_delete(method, url, encode = "multipart", body = NULL, node)

Arguments

method

a string indicating which HTTP method to use (post, put, or delete)

url

The URL to be accessed via authenticated PUT

encode

the type of encoding to use for the PUT body, defaults to 'multipart'

body

a list of data to be included in the body of the PUT request

node

The D1Node object that the request will be made to.

Value

the response object from the method