Skip to content

Commit 5a003fd

Browse files
author
Joe Gallo
committed
add promise Q example
1 parent 2bb2a14 commit 5a003fd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

examples/testPromiseQ.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"use strict";
2+
3+
var Client = require("./../lib/index");
4+
var Q = require("q"); // npm install q
5+
6+
var github = new Client({
7+
debug: false,
8+
Promise: Q.Promise
9+
});
10+
11+
github.users.getById({ id: '5057219' }).then(function(res) {
12+
console.log(res);
13+
});

0 commit comments

Comments
 (0)