util

util / BackblazeConfig / 0.1.0

README.md

Overview

Before using util/BackblazeUpload and util/BackblazeDownload, you must first configure your Backblaze credentials via this algorithm. The configuration will be stored in a Hosted Data collection accessible only by you.

Usage

Create an application key as per https://www.backblaze.com/blog/b2-application-keys or https://www.backblaze.com/b2/docs/b2_create_key.html

Copy the key_id and application_key provided by Backblaze and call this algorithm:

ParameterDescription
key_idBackblaze key_id
application_keyBackblaze application_key

example:

{
  "key_id": "000af74d6bf3db30000000001",
  "application_key": "K000c1ab70e8f7c67cf9d59128e3a3c"
}

Specifying namespaces

You may wish to be able to store different sets of credentials; you can do so by specifying a namespace as follows:

ParameterDescription
namespaceany alphanumeric string
configkey_id and application_key

example:

{
	"namespace": "staging",
	"config": {
		"key_id": "000af74d6bf3db30000000001",
		"application_key": "K000c1ab70e8f7c67cf9d59128e3a3c"
	}
}