ENG  РУС
>

API

PHP

Библиотека для работы с middleware.biz https://github.com/corezoid/sdk-php

Пример загрузки заявки в процесс 1635:

include_once('Middleware.php'); // Middleware class

// API user settings
$api_login = '1234';
$api_secret = 'Iw5N12MYleOULxdfMH43SK9ZAmjPyFKtdhToiL38xIBz6ecdZxW';

// Init Middleware class
$MV = new Middleware($api_login, $api_secret);

// Add new task
$ref1    = time().'_'.rand();
$task1   = array('phone' => '+380989055434', 'nick' => 'Test Nick');
// ID conveyor
$conv_id = 1635;

$MV->add_task($ref1, $conv_id, $task1);

// Send all tasks to Middleware
$res = $MV->send_tasks();
comments powered by HyperComments