PHP code example of tme / api-client-guzzle

1. Go to this page and download the library: Download tme/api-client-guzzle 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/ */

    

tme / api-client-guzzle example snippets




// Register your app here https://developers.tme.eu/en/dev
const TOKEN = '';
const SECRET = '';

end request
$options = [
    'form_params' => [
        'SymbolList' => [
            'NE555D',
            '1N4007-DIO'
        ],
        'Country' => 'US',
        'Language' => 'EN',
    ],
];

$result = $client->request('POST', '/Products/GetProducts.json', $options);

print_r(
    json_decode($result->getBody(), true)
);