Learn R Programming

backblazer (version 0.1.0)

b2GetUploadUrl: Get B2 Upload URL.

Description

b2GetUploadUrl returns the URL required in order to upload files to the user's account on the Backblaze B2 cloud storage product.

Usage

b2GetUploadUrl(bucketId)

Arguments

bucketId
The unique identifier of the bucket where files are to be uploaded. Bucket IDs may be obtained through the b2ListBucketsfunction in this package.

Value

If successful a list will be returned containing bucketId, uploadURL and authorizationToken.

Details

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.

Examples

Run this code
## Not run: 
# uploadUrlReturn <- b2GetUploadUrl(bucketId = "aUniqueBucketId")
# uploadUrl <- uploadUrlReturn$uploadUrl
# authToken <- uploadUrlReturn$authorizationToken
# ## End(Not run)

Run the code above in your browser using DataLab