Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[examples] Update Keys examples for consistency

  • Loading branch information...
commit 61dfd1646cc80ba56a51280da239085629305f5f 1 parent 0c30be4
@Marak Marak authored
View
11 node.js/examples/create-api-key.js
@@ -2,13 +2,12 @@ var nj = require('../lib/client'),
fs = require('fs');
var client = nj.createClient({
- username: 'jim',
- password: '1234',
- remoteUri: 'http://localhost:9001',
- debug: true
- });
+ username: 'marak',
+ password: 'foobar',
+ remoteUri: 'http://api.nodejitsu.com'
+});
-client.keys.create('jim/keys/test-api-key', function(err, result){
+client.keys.create('marak/keys/test-api-key', function(err, result){
if (err) {
console.log(err);
return;
View
11 node.js/examples/create-ssh-key.js
@@ -2,13 +2,12 @@ var nj = require('../lib/client'),
fs = require('fs');
var client = nj.createClient({
- username: 'jim',
- password: '1234',
- remoteUri: 'http://localhost:9001',
- debug: true
- });
+ username: 'marak',
+ password: 'foobar',
+ remoteUri: 'http://api.nodejitsu.com'
+});
-client.keys.create('jim/keys/test-ssh-key', { "type": "ssh", "value": "foobar" }, function(err, result){
+client.keys.create('marak/keys/test-ssh-key', { "type": "ssh", "value": "foobar" }, function(err, result){
if (err) {
console.log(err);
return;
View
11 node.js/examples/destroy-key.js
@@ -2,13 +2,12 @@ var nj = require('../lib/client'),
fs = require('fs');
var client = nj.createClient({
- username: 'jim',
- password: '1234',
- remoteUri: 'http://localhost:9001',
- debug: true
- });
+ username: 'marak',
+ password: 'foobar',
+ remoteUri: 'http://api.nodejitsu.com'
+});
-client.keys.destroy('jim/keys/test-ssh-key', function(err, result){
+client.keys.destroy('marak/keys/test-ssh-key', function(err, result){
if (err) {
console.log(err);
return;
View
11 node.js/examples/get-key.js
@@ -2,13 +2,12 @@ var nj = require('../lib/client'),
fs = require('fs');
var client = nj.createClient({
- username: 'jim',
- password: '1234',
- remoteUri: 'http://localhost:9001',
- debug: true
- });
+ username: 'marak',
+ password: 'foobar',
+ remoteUri: 'http://api.nodejitsu.com'
+});
-client.keys.view('jim/keys/my-key', function(err, result){
+client.keys.view('marak/keys/my-key', function(err, result){
if (err) {
console.log(err);
return;
View
11 node.js/examples/list-keys.js
@@ -2,13 +2,12 @@ var nj = require('../lib/client'),
fs = require('fs');
var client = nj.createClient({
- username: 'jim',
- password: '1234',
- remoteUri: 'http://localhost:9001',
- debug: true
- });
+ username: 'marak',
+ password: 'foobar',
+ remoteUri: 'http://api.nodejitsu.com'
+});
-client.keys.list('jim', function(err, result){
+client.keys.list('marak', function(err, result){
if (err) {
console.log(err);
return;
Please sign in to comment.
Something went wrong with that request. Please try again.