Skip to content

Commit 2e43234

Browse files
committed
readme
1 parent 899e5c3 commit 2e43234

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ Run test-server with example:
125125

126126
For full listing of all API calls check:
127127

128-
http://developer.github.com/
128+
[https://developer.github.com/v3/](https://developer.github.com/v3/)
129+
130+
Scope:
131+
132+
[https://developer.github.com/v3/oauth/#scopes](https://developer.github.com/v3/oauth/#scopes)
129133

130134
I have not tested many calls - but you should be able to use all. E.g. POST,
131135
or PATCH, DELETE.

example/config.php-dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
define('GITHUB_ID', 'f74854a6f0e5a473dfe1');
44
define('GITHUB_SECRET', 'c0946d82b5e631600ab1bea16f61b46c67d220e2');
55
define('GITHUB_CALLBACK_URL', 'http://localhost:8080/callback.php');
6+
define('GITHUB_SCOPE', 'user');

example/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
'redirect_uri' => GITHUB_CALLBACK_URL,
3535
'client_id' => GITHUB_ID,
3636
'state' => md5(uniqid()),
37-
'scope' => 'user'
37+
'scope' => GITHUB_SCOPE
3838
);
3939

4040
$api = new githubapi();

0 commit comments

Comments
 (0)