Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/circles.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/Api
diff options
context:
space:
mode:
authorMaxence Lange <maxence@nextcloud.com>2017-06-27 16:54:09 +0300
committerMaxence Lange <maxence@nextcloud.com>2017-06-27 16:54:09 +0300
commitbdbeef8f14cf2eaff01ad15fd7f6dd75f2e95861 (patch)
tree387b37a591949868af24ba764db3c16032df3303 /lib/Api
parentec27dd3421b463033608f9beeef63abb95a46c31 (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.php14
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