File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 20
20
21
21
You can find the docs for the API of this client at [ http://mikedeboer.github.com/node-github/ ] ( http://mikedeboer.github.com/node-github/ )
22
22
23
- Additionally, the [ official Github documentation] ( http ://developer.github.com/)
23
+ Additionally, the [ official Github documentation] ( https ://developer.github.com/v3 /)
24
24
is a very useful resource.
25
25
26
26
## Example
@@ -35,8 +35,8 @@ var github = new GitHubApi({
35
35
// optional
36
36
debug: true ,
37
37
protocol: " https" ,
38
- host: " github.my-GHE-enabled-company.com" ,
39
- pathPrefix: " /api/v3" , // for some GHEs
38
+ host: " github.my-GHE-enabled-company.com" , // should be api.github.com for GitHub
39
+ pathPrefix: " /api/v3" , // for some GHEs; none for GitHub
40
40
timeout: 5000 ,
41
41
headers: {
42
42
" user-agent" : " My-Cool-GitHub-App" // GitHub is happy with a unique user agent
You can’t perform that action at this time.
0 commit comments