Skip to content

Commit 51f35f8

Browse files
author
Evgeniy Guseletov
committed
Merge pull request #58 from jeboehm/master
List public events
2 parents 86d104c + 0fe721d commit 51f35f8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/Github/Api/User.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,18 @@ public function keys($username)
107107
{
108108
return $this->get('users/'.urlencode($username).'/keys');
109109
}
110+
111+
/**
112+
* List events performed by a user
113+
*
114+
* @link http://developer.github.com/v3/activity/events/#list-public-events-performed-by-a-user
115+
*
116+
* @param string $username
117+
*
118+
* @return array
119+
*/
120+
public function publicEvents($username)
121+
{
122+
return $this->get('users/' . urlencode($username) . '/events/public');
123+
}
110124
}

0 commit comments

Comments
 (0)