Answer the question
In order to leave comments, you need to log in
How to create a task in Bitrix24 via PHP?
Good afternoon! Can someone tell me a simple recipe on how to create a task in Bitrix24 after receiving information from the form on the site. Those. The user creates an order, I receive all the received values in PHP and I have to create a new task in Bitrix24 according to these values.
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Read the documentation for Bitrix24 api https://dev.1c-bitrix.ru/rest_help/ everything is there.
In short: we
sent the form, received the form, processed the form, generated a request to the Bitrix24 api, received a response, returned some data, displayed the message "everything worked out" to the user, for example.
Without knowledge of php and api Bitrix24 - no way.
If there is a plugin for your WP that will do everything for you
You write a form, send ajax data, here is the handler file:
$url = 'https://compmany.bitrix24.ru/crm/configs/import/lead.php';
$body = array(
'LOGIN' => '[email protected]',
'PASSWORD' => 'pass',
'TITLE' => $name,
'NAME' => $name,
);
$args = array(
'body' => $body
);
$response_api = wp_remote_post( $url, $args );
// Записываем ответ в переменную body
$body = wp_remote_retrieve_body( $response_api);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question