diff options
author | Maxence Lange <maxence@nextcloud.com> | 2017-06-27 16:54:09 +0300 |
---|---|---|
committer | Maxence Lange <maxence@nextcloud.com> | 2017-06-27 16:54:09 +0300 |
commit | bdbeef8f14cf2eaff01ad15fd7f6dd75f2e95861 (patch) | |
tree | 387b37a591949868af24ba764db3c16032df3303 /lib/Api | |
parent | ec27dd3421b463033608f9beeef63abb95a46c31 (diff) |
few changes to the API
Signed-off-by: Maxence Lange <maxence@nextcloud.com>
Diffstat (limited to 'lib/Api')
-rw-r--r-- | lib/Api/v1/Circles.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Api/v1/Circles.php b/lib/Api/v1/Circles.php index 262b0780..85618aa4 100644 --- a/lib/Api/v1/Circles.php +++ b/lib/Api/v1/Circles.php @@ -140,6 +140,20 @@ class Circles { /** + * Circles::joinedCircles(); + * + * Return all the circle the current user is a member. + * + * @return Circle[] + */ + public static function joinedCircles() + { + return self::listCircles(Circle::CIRCLES_ALL, '', Member::LEVEL_MEMBER); + } + + + + /** * Circles::detailsCircle(); * * WARNING - This function is called by the core - WARNING |