O
O
Offereight2018-03-28 14:18:46
PHP
Offereight, 2018-03-28 14:18:46

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

3 answer(s)
M
Maxim Timofeev, 2018-03-28
@webinar

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

O
OlegSedoy, 2018-03-29
@OlegSedoy

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);

A lead will appear in Bitrix

L
latishew, 2018-03-29
@latishew

If you create an order in CRM and your version of Bitrix24 has business processes, then you can try to do it. It will be easier and faster that way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question