Answer the question
In order to leave comments, you need to log in
How to get links to an image like *.jpg (or *.png) in Bitrix24 REST API?
I get a list of elements with the code:
CRest::call('lists.element.get', array(
'IBLOCK_TYPE_ID' => 'lists',
'IBLOCK_ID' => IB_ID,
'ELEMENT_ID' => ELEMENT_ID,
)
);
[PROPERTY_158] => Array
(
[237492] => 184049
[237493] => 184050
[237494] => 184051
[237495] => 184052
[237496] => 184053
[237497] => 184054
[237498] => 184055
)
CRest::call('lists.element.get.file.url', array(
'IBLOCK_TYPE_ID' => 'lists',
'IBLOCK_ID' => IB_ID,
'ELEMENT_ID' => ELEMENT_ID,
'FIELD_ID' => FIELD_ID
));
[result] => Array
(
[0] => /company/lists/45/file/0/29850/PROPERTY_158/184049/?ncc=y&download=y
[1] => /company/lists/45/file/0/29850/PROPERTY_158/184050/?ncc=y&download=y
[2] => /company/lists/45/file/0/29850/PROPERTY_158/184051/?ncc=y&download=y
[3] => /company/lists/45/file/0/29850/PROPERTY_158/184052/?ncc=y&download=y
[4] => /company/lists/45/file/0/29850/PROPERTY_158/184053/?ncc=y&download=y
[5] => /company/lists/45/file/0/29850/PROPERTY_158/184054/?ncc=y&download=y
[6] => /company/lists/45/file/0/29850/PROPERTY_158/184055/?ncc=y&download=y
)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question