Node module for interfacing with Bintray REST API. Basic functionality is to provides the ability to get packages, and signed URL for downloads.
Use the following command to install as runtime dependencies
$ npm install bintray-api --save
Example snippet for getting list of files under a package
var bintray = require('bintray');
var configs = {
"user": "my-user-name",
"apiKey": "my-api-hash-key",
"owner": "my-owner-name",
"repo": "my-repo-name"
};
var repo = new bintray(configs);
repo.packages.files('my-package-key')
.then(function(data){
console.log(data);
},
function(error){
console.error('Failed to retrieve packages: ' + error);
});