b2GetUploadUrl: Get B2 Upload URL.

View source: R/b2GetUploadUrl.R

b2GetUploadUrlR Documentation

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 b2ListBuckets function 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

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

## End(Not run)


phillc73/backblazer documentation built on March 29, 2025, 10:45 a.m.