Получить список типов свойств товаров crm.product.property.types

Scope: crm

Кто может выполнять метод: любой пользователь

DEPRECATED

Развитие метода остановлено. Используйте catalog.productPropertyFeature.*.

Метод crm.product.property.types возвращает список типов свойств товаров.

Без параметров.

Примеры кода

Как использовать примеры в документации

curl -X POST \
        -H "Content-Type: application/json" \
        -H "Accept: application/json" \
        -d '{"id":10}' \
        https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/crm.product.property.types
        
curl -X POST \
        -H "Content-Type: application/json" \
        -H "Accept: application/json" \
        -d '{"id":10,"auth":"**put_access_token_here**"}' \
        https://**put_your_bitrix24_address**/rest/crm.product.property.types
        
try
        {
        	const response = await $b24.callMethod(
        		"crm.product.property.types",
        		{
        			id: 10
        		}
        	);
        	
        	const result = response.getData().result;
        	console.dir(result);
        }
        catch( error )
        {
        	console.error(error);
        }
        
try {
            $response = $b24Service
                ->core
                ->call(
                    'crm.product.property.types',
                    [
                        'id' => 10
                    ]
                );
        
            $result = $response
                ->getResponseData()
                ->getResult();
        
            if ($result->error()) {
                error_log($result->error());
            } else {
                echo 'Success: ' . print_r($result->data(), true);
            }
        
        } catch (Throwable $e) {
            error_log($e->getMessage());
            echo 'Error calling crm.product.property.types: ' . $e->getMessage();
        }
        
BX24.callMethod(
            "crm.product.property.types",
            {
                id: 10
            },
            function (result)
            {
                if (result.error())
                    console.error(result.error());
                else
                    console.dir(result.data());
            }
        );
        
require_once('crest.php');
        
        $result = CRest::call(
            'crm.product.property.types',
            [
                'id' => 10
            ]
        );
        
        echo '<PRE>';
        print_r($result);
        echo '</PRE>';