Created
June 30, 2016 06:13
-
-
Save badri/f6b50b6c9aecbcbd979815eb4d8825c6 to your computer and use it in GitHub Desktop.
projspace deploy key add
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gitlab = require('node-gitlab'); | |
var client = gitlab.create({ | |
api: 'http://code.projspace.com/api/v3', | |
privateToken: 'qc1FmQcy9FoNAYTS2xtW' | |
}); | |
client.deployKeys.create({id: 239, "title": "nodejs-key", "key":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAPupuN3+Dbyay/5/aOHydxv4tXsgowKAs7uZ9NouwTh+Afb045NPbj7HMxMktpu7Y4/hfl53k42L/Cgm2aKpW0NDYwH69MKUVMBUaiwNh6V/EJcf9keAxwM8Qaf8mP85+ELKEhXKiI7fb2S4GqEh9y4I7MElVnQaeE+ljYziW1OFkxYGIyQQJGA+UnaY8QvtxMWl8VQTy4yQ/6YRX8POaAeXP46qnIl+orovkU3mh/4XGPtCTh3dLYDq837+WMn6vD34nl3Noy8wzGx2W3SU8g0nXGfoy2YYtm06zu1VCggXSRDxvMJzh0zSy0rw6upD4FGkCyH7gaHo3fG33czIF root@manomadhu"}, function (err, project) { | |
console.log(err, project); | |
}); | |
client.deployKeys.list({id: 239}, function (err, project) { | |
console.log(err, project); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment