b2GetUploadUrl: Get B2 Upload URL.

Description Usage Arguments Details Value Examples

View source: R/b2GetUploadUrl.R

Description

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

Usage

1
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.

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.

Value

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

Examples

1
2
3
4
5
6
## Not run: 
uploadUrlReturn <- b2GetUploadUrl(bucketId = "aUniqueBucketId")
uploadUrl <- uploadUrlReturn$uploadUrl
authToken <- uploadUrlReturn$authorizationToken

## End(Not run)

backblazer documentation built on May 30, 2017, 6:15 a.m.