-
Notifications
You must be signed in to change notification settings - Fork 58
Javascript API v1
Maxence Lange edited this page May 29, 2017
·
8 revisions
in the PHP of your app, you will need to load the Circles.js:
<?php script('circles', 'circles'); ?>
Then from your Javascript:
var api = OCA.Circles.api;
Create a new circle. You must specify type and name. type is one of this value:
CIRCLES_PERSONAL is 1 or 'personal'; CIRCLES_HIDDEN is 2 or 'hidden'; CIRCLES_PRIVATE is 4 or 'private'; CIRCLES_PUBLIC is 8 or 'public';
This function will make the current user to join a circle identified by its Id.