定制 tme/api-client-guzzle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 4
  • Watchers: 3
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-13