Description Usage Arguments Details Value
This is the workhorse function for executing API requests for Qing.
1 2 3 4 5 6 7 | QingHTTP(verb = "GET", bucket = "", path = "", folder = "",
query = NULL, headers = list(), request_body = "", accelerate = FALSE,
region = Sys.getenv("Qstor_DEFAULT_REGION", "pek3a"),
key = Sys.getenv("Qstor_ACCESS_KEY_ID"),
secret = Sys.getenv("Qstor_SECRET_ACCESS_KEY"),
session_token = Sys.getenv("Qstor_SESSION_TOKEN"), parse_response = TRUE,
...)
|
verb |
A character string containing an HTTP verb, defaulting to “GET”. |
bucket |
A character string with the name of the bucket, or an object of class “qing_bucket”. If the latter and a region can be inferred from the bucket object attributes, then that region is used instead of |
path |
A character string with the name of the object to put in the bucket (sometimes called the object or 'key name' in the QingStor documentation.) |
query |
any queries, passed as a named list |
headers |
a list of request headers for the REST call. |
request_body |
character string of request body data. |
accelerate |
A logical indicating whether to use QingStor transfer acceleration, which can produce significant speed improvements for cross-country transfers. Acceleration only works with buckets that do not have dots in bucket name. |
region |
A character string containing the QingStor region. Ignored if region can be inferred from |
key |
A character string containing an QingStor Access Key ID. If missing, defaults to value stored in environment variable “Qstor_ACCESS_KEY_ID”. |
secret |
A character string containing an QingStor Secret Access Key. If missing, defaults to value stored in environment variable “Qstor_SECRET_ACCESS_KEY”. |
parse_response |
return the response as is, or parse and return as a list? Default is TRUE. |
... |
Additional arguments passed to an HTTP request function. such as |
This is mostly an internal function for executing API requests. In almost all cases, users do not need to access this directly.
the Qing response, or the relevant error.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.