fisk/marketplace

marketplace.tf web API wrapper

1.0.0 2020-12-08 12:23 UTC

This package is auto-updated.

Last update: 2024-05-23 10:06:57 UTC


README

Provides bindings for the public Marketplace.tf web APIs. Software design is based on da-mitchell's Steam API bindings.

Composer

composer require fisk/marketplace

Usage

<?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);
?>