Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed Mar 10, 2014
1 parent 4f2eecc commit c147eb2
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ You need php 5.4 or higher to use this library.
----

## Get started ##
Install via composer: `composer require mpscholten/github-api v0.1`
Install via composer: `composer require mpscholten/github-api v0.3`
```json
{
"require": {
"mpscholten/github-api": "v0.1"
"mpscholten/github-api": "v0.3"
}
}
```
Expand Down Expand Up @@ -74,6 +74,16 @@ $user->getOrganizations();
foreach ($user->getRepositories() as $repository) {
echo $repository->getName();
}

// with the 'user:email' oauth scope
$user->getPrimaryEmail();
$user->getEmails();

foreach ($user->getEmails() as $email) {
if ($email->isVerified()) {
echo $email;
}
}
```


Expand Down

0 comments on commit c147eb2

Please sign in to comment.