backblaze
Advanced tools
Comparing version 1.0.0 to 1.0.1
52
index.js
/* | ||
* Backblaze B2 | ||
* API v1 | ||
*/ | ||
var curl = require('curlrequest'); | ||
var B2 = function(accountId, applicationKey, options) { | ||
this._accountId = accountId; | ||
this._applicationKey = applicationKey; | ||
options = options || function(){}; | ||
}; | ||
B2.prototype.authorizeAccount = function() { | ||
console.log(this._accountId + ':' + this._applicationKey); | ||
var options = { | ||
url: 'https://api.backblaze.com/b2api/v1/b2_authorize_account' | ||
, user: this._accountId + ':' + this._applicationKey | ||
}; | ||
curl.request(options, function (err, file) { | ||
console.log(file); | ||
}); | ||
}; | ||
B2.prototype.createBucket = function() { | ||
}; | ||
B2.prototype.deleteBucket = function() { | ||
}; | ||
B2.prototype.deleteFileVersion = function() { | ||
}; | ||
B2.prototype.downloadFileById = function() { | ||
}; | ||
B2.prototype.downloadFileByName = function() { | ||
}; | ||
B2.prototype.getFileInfo = function() { | ||
}; | ||
B2.prototype.getUploadUrl = function() { | ||
}; | ||
exports.B2 = B2; |
{ | ||
"name": "backblaze", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Backblaze B2", | ||
@@ -22,3 +22,6 @@ "main": "index.js", | ||
}, | ||
"homepage": "https://github.com/samgranger/backblaze#readme" | ||
"homepage": "https://github.com/samgranger/backblaze#readme", | ||
"dependencies": { | ||
"curlrequest": "^0.5.3" | ||
} | ||
} |
@@ -1,1 +0,4 @@ | ||
# backblaze | ||
# Backblaze B2 | ||
A simple library for Backblaze B2. | ||
To find out more about B2, visit http://backblaze.com/b2 |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
1701
5
38
5
0
1
+ Addedcurlrequest@^0.5.3
+ Addedcurlrequest@0.5.7(transitive)