tme/api-client-guzzle

Guzzle Client to interact with TME API

Maintainers

Package info

github.com/tme-dev/api-client-guzzle

Homepage

Issues

pkg:composer/tme/api-client-guzzle

Transparency log

Statistics

Installs: 108 392

Dependents: 0

Suggesters: 0

Stars: 4

1.0.1 2025-01-27 12:24 UTC

This package is auto-updated.

Last update: 2026-07-10 11:42:33 UTC


README

This repository is maintained for the deprecated version of the TME API only and is no longer updated with the latest API documentation.

For the current API version (v2), please refer to the official documentation available:

To ensure you are using the latest endpoints, authentication flow, and integration guidelines, always refer to the official TME API v2 documentation.

TME-API Guzzle Client

This library provides a Guzzle Client which communicates with TME API.

Installation:

composer require tme/api-client-guzzle

Example usage:

<?php

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

require 'vendor/autoload.php';

// Factory Guzzle client.
$client = \TMEApi\ClientFactory::factoryForCredentials(TOKEN, SECRET);

// Send 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)
);