Skip to content

Commit 874f4f9

Browse files
author
Nek (Maxime Veber)
committed
Fixed 39 : urls to get informations about watching
1 parent b213498 commit 874f4f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Github/Api/Repo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ public function teams($username, $repository)
367367
*/
368368
public function watchers($username, $repository, $page = 1)
369369
{
370-
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/watchers', array(
370+
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/subscribers', array(
371371
'page' => $page
372372
));
373373
}

lib/Github/Api/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function followers($username)
6969
*/
7070
public function watched($username)
7171
{
72-
return $this->get('users/'.rawurlencode($username).'/watched');
72+
return $this->get('users/'.rawurlencode($username).'/subscriptions');
7373
}
7474

7575
/**

0 commit comments

Comments
 (0)