PHP code example of drinks-it / pixi-api

1. Go to this page and download the library: Download drinks-it/pixi-api 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/ */

    

drinks-it / pixi-api example snippets

  
:::PHP
  
  
';  
$password = 'Bar';  
$endpoint = "https://soap.pixi.eu/soap/Endpoint/";  
  
$options = new Pixi\API\Soap\Options($username, $password, $endpoint);  
$options->allowSelfSigned();  
  
$soapClient = new \Pixi\API\Soap\Client(null, $options->getOptions());
  
  
:::PHP  
  
$resultArray = $soapClient->pixiGetShops()->getResultset();  
  
echo '<pre>';  
var_dump($resultArray);