fisk / marketplace
marketplace.tf 网页 API 封装器
1.0.0
2020-12-08 12:23 UTC
Requires
- php: ^7.1 || ^8.0
- guzzlehttp/guzzle: ~6.1
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ^9.4
This package is auto-updated.
Last update: 2024-09-23 10:51:04 UTC
README
提供对公共 Marketplace.tf 网页 API 的绑定。软件设计基于 da-mitchell 的 Steam API 绑定。
Composer
composer require fisk/marketplace
使用说明
<?php
$config = new Configuration([
Configuration::API_KEY => ''
]);
$client = new Marketplace($config);
$client->addRunner(new GuzzleRunner(new Client(), new GuzzleUrlBuilder()));
$client->addRunner(new DecodeJsonStringRunner());
$result = $client->run(new GetDashboardItems());
print_r($result);
?>