File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,7 +125,11 @@ Run test-server with example:
125125
126126For 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
130134I have not tested many calls - but you should be able to use all. E.g. POST,
131135or PATCH, DELETE.
Original file line number Diff line number Diff line change 33define('GITHUB_ID', 'f74854a6f0e5a473dfe1');
44define('GITHUB_SECRET', 'c0946d82b5e631600ab1bea16f61b46c67d220e2');
55define('GITHUB_CALLBACK_URL', 'http://localhost:8080/callback.php');
6+ define('GITHUB_SCOPE', 'user');
Original file line number Diff line number Diff line change 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 ();
You can’t perform that action at this time.
0 commit comments