URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2..."; DepartmentID = "336"; Result = OPI_Bitrix24.GetDepartments(URL, DepartmentID); URL = "b24-ar17wx.bitrix24.by"; Token = "8b80e066006e9f06006b12e400000001000..."; HeadID = 1; Result = OPI_Bitrix24.GetDepartments(URL, , , , HeadID, Token);