PHP code example of cl-lab / amo-middleware
1. Go to this page and download the library: Download cl-lab/amo-middleware library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cl-lab / amo-middleware example snippets `
$parameters = array(
'name' => 'Тестовая сделка',
'responsible_user_id' => '697344',
...
'custom_fields' => array(
array(
'id' => 167379,
'value' => [[388733, 'Стартап']],
),
),
);
`
$parameters = array(
'name' => 'Тестовая сделка',
'responsible_user_id' => '697344',
...
'custom_fields' => array(
array(
'id' => 167379,
'value' => [[388733, 'Стартап']],
'enum' => true,
'subtitle' => true,
),
),
);
`
$dataList = array(
array(
'name' => 'Тестовая сделка',
'responsible_user_id' => '697344',
...
'custom_fields' => array(
array(
'id' => 167379,
'value' => [[388733, 'Стартап']],
),
),
),
array(
'name' => 'Тестовая сделка2',
'responsible_user_id' => '789344',
...
'custom_fields' => array(
array(
'id' => 167379,
'value' => [[388733, 'Стартап']],
),
array(
'id' => 168596,
'value' => [[384533, 'Стартап2']],
),
),
),
);
`
$parameters = array(
'name' => 'Воронка 1',
'sort' => 1,
...
'statuses_fields' => array(
array(
'parameters' => array(
'name' => 'Pending',
'sort' => 10,
'color' => '#fffeb2',
),
),
)
);
`
$parameters = array(
'name' => 'Воронка 1',
'sort' => 1,
...
'statuses_fields' => array(
array(
'parameters' => array(
'name' => 'Pending',
'sort' => 10,
'color' => '#fffeb2',
),
'id' => 12345,
),
)
);