Bitrix24 REST API

sonet_group.get

Return array of social network groups, each of which contains a field array, callng CSocNetGroup::GetList(), in this case only groups available to user by permissions are returned.

Function parameters

Parameter Description
ORDER Corresponds to the arOrder parameter of the CSocNetGroup::GetList() method.
FILTER Corresponds to the arFilter parameter of the CSocNetGroup::GetList() method.

Return the same fields as CSocNetGroup::GetList(), except INITIATE_PERMS, SPAM_PERMS and IMAGE_ID (return the IMAGE field, with file field of the corresponding IMAGE_ID instead of the latter).

Example

 // Get a list of all available social network groups, whose name begins with a substring "company" sorted alphabetically by name
 
 BX24.callMethod('sonet_group.get', {
 'ORDER': {
 'NAME': 'ASC'
 },
 'FILTER': {
 '%NAME': 'company'
 }
 });

Request:

https://mydomain.bitrix24.com/rest/sonet_group.get.json?auth=78aa4c5a031b77527ce3c6fa69c14f69&&ORDER[NAME]=ASC&FILTER[%25NAME]=company

Response:

{"result":[{"ID":"28","SITE_ID":"s1","NAME":"New company web site development","DESCRIPTION":"Group description","DATE_CREATE":"2013-05-23T15:06:13+04:00","DATE_UPDATE":"2013-05-23T15:06:13+04:00","ACTIVE":"Y","VISIBLE":"Y","OPENED":"N","CLOSED":"N","SUBJECT_ID":"1","OWNER_ID":"2","KEYWORDS":"","NUMBER_OF_MEMBERS":"3","DATE_ACTIVITY":"2013-11-21T15:38:05+04:00","SUBJECT_NAME":"Work groups"}],"total":1}


User comments

Comments by users are not official documentation. Responsibility for use of the comments are born by users themselves.

The user comments section is not intended as a request box or training area, but rather for specific usage examples. For more general inquiries, please refer to link.

Comments may be added only by registered users and appear after moderation.
© 2001-2017 Bitrix, Inc. Bitrix® is a registered trademark of Bitrix, Inc. Powered by Bitrix Site Manager