powered by
moves a cloud file from the S3 bucket only available via ScienceBase authenticated services to a public S3 bucket.
item_publish_cloud(sb_id, files, ..., session = current_session())
web service response invisibly.
An sbitem object or a character ScienceBase ID corresponding to the item
sbitem
A string vector of paths to files to be uploaded
Additional parameters are passed on to GET, POST, HEAD, PUT, or DELETE
GET
POST
HEAD
PUT
DELETE
Session object from authenticate_sb. Defaults to anonymous or last authenticated session
authenticate_sb
if (FALSE) { res <- item_create(user_id(), "testing 123") cat("foo bar", file = "foobar.txt") item_upload_cloud(res$id, "foobar.txt") item_publish_cloud(res$id, "foobar.txt") }
Run the code above in your browser using DataLab