Wrapper for the BitBucket API
npm install node-okbitbucketMac/Linux | Windows
---- | ----

|

API to programmatically query / write on bitbucket.
Pure NodeJS implementation.
``sh`
npm i node-okbitbucket --save
`js
var secrets = {
username:'',
password:'',
oauth = {
clientId: '',
secret: ''
}
};
// var secrets = require('./secrets.json');
// enable debug messages
if ( process.env.NODE_ENV === 'test' ){
process.env.DEBUG='*';
}
var BitBucket = require('node-okbitbucket');
var bbt = (new BitBucket())
.authenticatePassword(secrets.username, secrets.password);
bbt.getUserApi().getRepositories(username, function(err, repos){ });
bbt.getUsersApi().getUserData(username, function(err, user){ });
bbt.getSshApi().getKeys(function(err, keys){ });
bbt.getSshApi().addKey(pubkey, function(err){ });
bbt.getSshApi().deleteKey(pubkey, function(err){ });
bbt.getSshApi().deleteAllKeys(function(){ });
bbt.getRepoApi().show(username, repo, function(err, userRepo){ })
bbt.getRepoApi().getUserRepos(username, function(err, repositories){ })
bbt.getEmailApi().getAll(username, repo, function(err, userRepo){ })
`
* BitBucket
* AbstractApi
* EmailApi
* RepositoryApi
* Request
* SshApi
* UserApi
* UsersApi
``
npm run test
DEBUG=node-okbitbucket mocha
* Test`
- write documentation
- write missing tests (see tests files directly)
- re write example
- fix lint
It s a fork or original repo found on github, itself a fork of a bitbucket repo.
I only want to note about the license,
i see there is one,
i m not interested into this, not at all.
I just need this to work, the rest is pointless.