powered by
Generic REST resource creation.
opal.post( opal, ..., query = list(), body = "", contentType = "application/x-rscript", acceptType = "application/json", callback = NULL )
Opal object.
Resource path segments.
Named list of query parameters.
The body of the request.
The type of the body content. Default is 'application/x-rscript'.
The type of the body content. Default is 'application/json', i.e. a serialized R object or an error message.
A callback function to handle the response object.
Other REST functions: opal.delete(), opal.get(), opal.put()
opal.delete()
opal.get()
opal.put()
# NOT RUN { o <- opal.login('administrator','password', url='https://opal-demo.obiba.org') opal.post(o, 'some', 'resources', body='{"some":"value"}') opal.logout(o) # }
Run the code above in your browser using DataLab