rockr.post {rockr}R Documentation

Generic REST resource creation.

Description

Generic REST resource creation.

Usage

rockr.post(
  conn,
  ...,
  query = list(),
  body = "",
  contentType = "application/x-rscript",
  acceptType = "application/octet-stream, application/json",
  callback = NULL
)

Arguments

conn

A rockr connection object.

...

Resource path segments.

query

Named list of query parameters.

body

The body of the request.

contentType

The type of the body content. Default is 'application/x-rscript'.

acceptType

The type of the body content. Default is 'application/octet-stream, application/json', i.e. a serialized R object or an error message.

callback

A callback function to handle the response object.

Value

The response output object.

See Also

Other REST functions: rockr.delete(), rockr.get(), rockr.put()


[Package rockr version 1.0.0 Index]