-
-
Notifications
You must be signed in to change notification settings - Fork 596
Events list per authenticated user for all repos #1000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
b565d6d
10a85ea
3938a42
5534e25
c520754
42f1f42
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -234,4 +234,23 @@ public function publicEvents($username) | |
| { | ||
| return $this->get('/users/'.rawurlencode($username).'/events/public'); | ||
| } | ||
|
|
||
| /** | ||
| * List events performed by an authenticated user. | ||
| * | ||
| * @link https://docs.github.com/en/rest/reference/activity#list-events-for-the-authenticated-user | ||
| * | ||
| * @param string $username | ||
| * @param int $page the page number of the paginated result set | ||
| * @param int $perPage the number of results per page | ||
| * | ||
| * @return array | ||
| */ | ||
| public function events($username, $page = 1, $perPage = 30) | ||
|
||
| { | ||
| return $this->get('/users/'.rawurlencode($username).'/events', [ | ||
| 'page' => $page, | ||
| 'per_page' => $perPage, | ||
| ]); | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the
$pageand$perPageparameters, theResultPagershould be used to loop over all the resultsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just removed both parameters, thank you.