new_operation | R Documentation |
Return an API operation object, with information on what to request for a
given API operation. For example, the S3 service's "list buckets" operation
is named ListBuckets
, it requires a GET
request, and so on.
new_operation(
name,
http_method,
http_path,
host_prefix,
paginator,
before_presign_fn = NULL
)
name |
The API operation name. |
http_method |
The HTTP method, e.g. |
http_path |
The HTTP path. |
host_prefix |
The HTTP prefix |
paginator |
Currently unused. |
before_presign_fn |
Currently unused. |
Other API request functions:
new_handlers()
,
new_request()
,
new_service()
,
send_request()
# Save info about the S3 ListBuckets API operation.
op <- new_operation(
name = "ListBuckets",
http_method = "GET",
http_path = "/",
paginator = list()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.