#' @rdname requestpayment
#' @title requestPayment
#' @description Get/Put the requestPayment subresource for a bucket.
#'
#' @template bucket
#' @template dots
#'
#' @return A list containing the requestPayment information, if set.
#' @references \href{http://docs.aws.amazon.com/AmazonS3/latest/API/RESTrequestPaymentGET.html}{API Documentation}
#' @export
get_requestpayment <- function(bucket, ...){
r <- s3HTTP(verb = "GET",
bucket = bucket,
query = list(requestPayment = ""),
...)
return(r)
}
#' @rdname requestpayment
#' @export
put_requestpayment <- function(bucket, ...){
r <- s3HTTP(verb = "PUT",
bucket = bucket,
query = list(requestPayment = ""),
...)
structure(r, class = "s3_bucket")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.