Skip to content

Commit f09548d

Browse files
author
François Kooman
committed
add support for retrieving current_user subscriptions
1 parent 785c905 commit f09548d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/Github/Api/CurrentUser.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,12 @@ public function starred($page = 1)
120120
'page' => $page
121121
));
122122
}
123+
124+
/**
125+
* @link https://developer.github.com/v3/activity/watching/#list-repositories-being-watched
126+
*/
127+
public function subscriptions()
128+
{
129+
return $this->get('user/subscriptions');
130+
}
123131
}

0 commit comments

Comments
 (0)