PHP code example of omatech / seur-dispatches-service

1. Go to this page and download the library: Download omatech/seur-dispatches-service 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/ */

    

omatech / seur-dispatches-service example snippets

 php
$search = [
  'in0' => 'S',
  'in1' => '',
  'in2' => null,
  'in3' => '',
  'in4' => '1234-56',
  'in5' => '01-05-2019',
  'in6' => '08-05-2019',
  'in7' => '',
  'in8' => '',
  'in9' => '',
  'in10' => '',
  'in11' => null,
  'in12' => 'MYUSERNAME', //Not mandatory if environment variables have been configured
  'in13' => 'MYPASSWORD', //Not mandatory if environment variables have been configured
  'in14' => 'N'
];
$seur = new Seur();
$dispatches = $seur->dispatches($search);

 php
$search = [
  'in0' => 'S',
  'in1' => 'REF',
  'in2' => 'MYUSERNAME', //Not mandatory if environment variables have been configured
  'in3' => 'MYPASSWORD', //Not mandatory if environment variables have been configured
];
$seur = new Seur();
$dispatch = $seur->dispatch($search);
 php
$seur = new Seur();
$dispatch = $seur->getTypeLDispatchById('ID');
 php
$seur = new Seur();
$dispatch = $seur->getTypeSDispatchById('ID');