File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ You need php 5.4 or higher to use this library.
16
16
----
17
17
18
18
## Get started ##
19
- Install via composer: ` composer require mpscholten/github-api v0.1 `
19
+ Install via composer: ` composer require mpscholten/github-api v0.3 `
20
20
``` json
21
21
{
22
22
"require" : {
23
- "mpscholten/github-api" : " v0.1 "
23
+ "mpscholten/github-api" : " v0.3 "
24
24
}
25
25
}
26
26
```
@@ -74,6 +74,16 @@ $user->getOrganizations();
74
74
foreach ($user->getRepositories() as $repository) {
75
75
echo $repository->getName();
76
76
}
77
+
78
+ // with the 'user:email' oauth scope
79
+ $user->getPrimaryEmail();
80
+ $user->getEmails();
81
+
82
+ foreach ($user->getEmails() as $email) {
83
+ if ($email->isVerified()) {
84
+ echo $email;
85
+ }
86
+ }
77
87
```
78
88
79
89
You can’t perform that action at this time.
0 commit comments