SwaggerClient-php
API Explorer for SteamTrades' RESTful API., (*1)
This PHP package is automatically generated by the Swagger Codegen project:, (*2)
- API version: 1.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.PhpClientCodegen
Requirements
PHP 5.4.0 and later, (*3)
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json:, (*4)
{
"repositories": [
{
"type": "git",
"url": "https://github.com/SteamTrades/php-api-client.git"
}
],
"require": {
"streamtrades/public-api": "*@dev"
}
}
Then run composer install, (*5)
Manual Installation
Download the files and include autoload.php:, (*6)
require_once('/path/to/SwaggerClient-php/autoload.php');
Getting Started
Please follow the installation procedure and then run the following:, (*7)
setApiKey('Authorization', 'YOUR API KEY HERE');
SteamTrades\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Token');
$api_instance = new SteamTrades\Api\TradeApi();
try {
$result = $api_instance->itemMineGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TradeApi->itemMineGet: ', $e->getMessage(), PHP_EOL;
}
?>
Documentation for API Endpoints
All URIs are relative to https://steamtrad.es/api/v1, (*8)
Documentation For Models
Documentation For Authorization
Token
-
Type: API key
-
API key parameter name: Authorization
-
Location: HTTP header
Author
devs@steamtrad.es, (*9)