From f09548dfebac1c9756391fe3d9c8b56fb78d6e2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Kooman?= Date: Sat, 21 Jun 2014 15:56:24 +0700 Subject: [PATCH] add support for retrieving current_user subscriptions --- lib/Github/Api/CurrentUser.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/Github/Api/CurrentUser.php b/lib/Github/Api/CurrentUser.php index 7b1af4381c8..2e210f51b94 100644 --- a/lib/Github/Api/CurrentUser.php +++ b/lib/Github/Api/CurrentUser.php @@ -120,4 +120,12 @@ public function starred($page = 1) 'page' => $page )); } + + /** + * @link https://developer.github.com/v3/activity/watching/#list-repositories-being-watched + */ + public function subscriptions() + { + return $this->get('user/subscriptions'); + } }