View source: R/b2GetUploadUrl.R
b2GetUploadUrl | R Documentation |
b2GetUploadUrl
returns the URL required in order to upload files to
the user's account on the Backblaze B2 cloud storage product.
b2GetUploadUrl(bucketId)
bucketId |
The unique identifier of the bucket where files are to be
uploaded. Bucket IDs may be obtained through the
|
This function returns the URL required in order to upload files the user's account on the Backblaze B2 cloud storage product. An uploadUrl and upload authorizationToken are also returned. These are valid for 24 hours or until the endpoint rejects an upload, Further details regarding this API call are available here:
https://www.backblaze.com/b2/docs/b2_get_upload_url.html
bucketId
is mandatory and must be user defined.
If successful a list will be returned containing bucketId
,
uploadURL
and authorizationToken
.
## Not run:
uploadUrlReturn <- b2GetUploadUrl(bucketId = "aUniqueBucketId")
uploadUrl <- uploadUrlReturn$uploadUrl
authToken <- uploadUrlReturn$authorizationToken
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.