2017 © Pedro Peláez
 

library public-api

SteamTrad.es API client

image

steamtrades/public-api

SteamTrad.es API client

  • Friday, June 17, 2016
  • by steamtrades
  • Repository
  • 2 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

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)

Class Method HTTP request Description
TradeApi gameGet GET /game/ List supported games
TradeApi gameIdGet GET /game/{id}/ Info about a game
TradeApi itemMineGet GET /item/mine/ List owned items
TradeApi itemScanUserInventoryPost POST /item/scan_user_inventory/ Scan Steam user inventory
TradeApi itemUserInventoryGet GET /item/user_inventory/ Get inventory scan results
TradeApi tradeGet GET /trade/ List your trades
TradeApi tradeIdGet GET /trade/{id}/ Get trade status
TradeApi tradeRequestItemsPost POST /trade/request_items/ Request items
TradeApi tradeSendItemsPost POST /trade/send_items/ Send items
TradeApi tradeTransferItemsPost POST /trade/transfer_items/ Transfer items
TradeApi userInfoBySteamIdGet GET /user/info_by_steam_id/ Steam user info by Steam ID
TradeApi userInfoByTradeUrlGet GET /user/info_by_trade_url/ Steam user info by trade URL

Documentation For Models

Documentation For Authorization

Token

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Author

devs@steamtrad.es, (*9)

The Versions

17/06 2016

dev-master

9999999-dev https://steamtrad.es

SteamTrad.es API client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php swagger sdk

17/06 2016

v1.0.0-beta1

1.0.0.0-beta1 https://steamtrad.es

SteamTrad.es API client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php swagger sdk

27/05 2016

v1.0.0-alpha4

1.0.0.0-alpha4 https://steamtrad.es

SteamTrad.es API client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php swagger sdk

19/05 2016

v1.0.0-alpha3

1.0.0.0-alpha3 https://steamtrad.es

SteamTrad.es API client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php swagger sdk

05/05 2016

v1.0.0-alpha2

1.0.0.0-alpha2 https://steamtrad.es

SteamTrad.es API client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php swagger sdk

29/04 2016

v1.0.0-alpha

1.0.0.0-alpha https://steamtrad.es

SteamTrad.es API client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-json *
  • ext-mbstring *

 

The Development Requires

api php swagger sdk