PHP code example of gedankengut / gsales-api-php
1. Go to this page and download the library: Download gedankengut/gsales-api-php 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/ */
gedankengut / gsales-api-php example snippets
entBuilder = new \Gsales\ClientBuilder();
$clientBuilder->addPlugin(new \Http\Client\Common\Plugin\HeaderDefaultsPlugin(['Authorization' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx']));
$clientOptions = new \Gsales\Options(['client_builder' => $clientBuilder,'api_uri' => 'https://mydomain.de/gsales3/api']);
$gsales = new \Gsales\Client($clientOptions);
$gsales->articles()->get()
bash
composer