PHP code example of blacksesion / sgiavender

1. Go to this page and download the library: Download blacksesion/sgiavender 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/ */

    

blacksesion / sgiavender example snippets





$client = new SGIAvenderLib\SGIAvenderClient();

$misc = $client->getMisc();

function divisiones($body)

$bodyValue = "{\r\n  \"idIntegracion\": 21,\r\n  \"token\": \"6be7212a-a769-40e4-9c6b-283aa06a3127\",\r\n  \"idOrigen\": 83\r\n}";
$body = APIHelper::deserialize($bodyValue);

$misc->divisiones($body);


function marcas($body)

$bodyValue = "{\r\n  \"idIntegracion\": 21,\r\n  \"token\": \"6be7212a-a769-40e4-9c6b-283aa06a3127\",\r\n  \"idOrigen\": 83\r\n}";
$body = APIHelper::deserialize($bodyValue);

$misc->marcas($body);


function modelos($body)

$bodyValue = "{\r\n  \"idIntegracion\": 21,\r\n  \"token\": \"6be7212a-a769-40e4-9c6b-283aa06a3127\",\r\n  \"idOrigen\": 83\r\n}";
$body = APIHelper::deserialize($bodyValue);

$misc->modelos($body);


function regiones($body)

$bodyValue = "{\r\n  \"idIntegracion\": 21,\r\n  \"token\": \"6be7212a-a769-40e4-9c6b-283aa06a3127\",\r\n  \"idOrigen\": 83\r\n}";
$body = APIHelper::deserialize($bodyValue);

$misc->regiones($body);


function comunas($body)

$bodyValue = "{\r\n  \"idIntegracion\": 21,\r\n  \"token\": \"6be7212a-a769-40e4-9c6b-283aa06a3127\",\r\n  \"idOrigen\": 83\r\n}";
$body = APIHelper::deserialize($bodyValue);

$misc->comunas($body);


function sucursales($body)

$bodyValue = "{\r\n  \"idIntegracion\": 21,\r\n  \"token\": \"6be7212a-a769-40e4-9c6b-283aa06a3127\",\r\n  \"idOrigen\": 83\r\n}";
$body = APIHelper::deserialize($bodyValue);

$misc->sucursales($body);


function crearProspecto($body)

$bodyValue = "{\r\n  \"token\": \"6be7212a-a769-40e4-9c6b-283aa06a3127\",\r\n  \"idIntegracion\": 21,\r\n  \"idOrigen\": 83,\r\n  \"idMarca\": 6,\r\n  \"idModelo\": 133,\r\n  \"idSucursal\": 24,\r\n  \"idDivision\": 3,\r\n  \"nombre\": \"David Martinez\",\r\n  \"email\": \"[email protected]\",\r\n  \"fono\": \"951253162\",\r\n  \"comentario\": \"test de integracion desde Avender\"\r\n}";
$body = APIHelper::deserialize($bodyValue);

$misc->crearProspecto($body);

autoload.php