tme/api-client-guzzle
最新稳定版本:1.0.1
Composer 安装命令:
composer require tme/api-client-guzzle
包简介
Guzzle Client to interact with TME API
README 文档
README
This library provides a Guzzle Client which communicates with TME API.
Read more at:
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) );
统计信息
- 总下载量: 104.21k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-13