0.0.2 • Published 9 years ago

bintray-api v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

Bintray REST API

Node module for interfacing with Bintray REST API. Basic functionality is to provides the ability to get packages, and signed URL for downloads.

Installation

Use the following command to install as runtime dependencies

$ npm install bintray-api --save

Basic usage

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(config);
repo.packages.files('my-package-key')
  .then(function(data){
    console.log(data);  
  },
  function(error){
    console.error('Failed to retrieve packages: ' + error);
  });