new_request | R Documentation |
Return an API request object with everything needed to make a request.
new_request(client, operation, params, data, dest = NULL)
client |
A service client, e.g. from |
operation |
An operation, e.g. from |
params |
A populated input object. |
data |
An empty output object. |
dest |
Control where the response body is written |
Other API request functions:
new_handlers()
,
new_operation()
,
new_service()
,
send_request()
## Not run:
# Make a request object for the S3 ListBuckets operation.
metadata <- list(
endpoints = list("*" = list(endpoint = "s3.{region}.amazonaws.com", global = FALSE)),
service_name = "s3"
)
client <- new_service(metadata, new_handlers("restxml", "s3"))
op <- new_operation("ListBuckets", "GET", "/", list())
params <- list()
data <- tag_add(list(Buckets = list()), list(type = "structure"))
req <- new_request(client, op, params, data)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.