src/steam/webapi

  Source   Edit

Author:levshx
Version:0.0.2

This library allows you to use the open Web API Steam.

Overview

Create WebAPI client

Use only var

import steam/webapi


# Create Steam session
var webAPI = newSteamWebAPI(keySteam)

Procs

proc call(client: SteamWebAPI; interfaceName: string; methodName: string;
          version: int): JsonNode {....raises: [IOError, OSError, JsonParsingError,
    ValueError, Exception, HttpRequestError, LibraryError, SslError,
    TimeoutError, ProtocolError, KeyError], tags: [ReadIOEffect, WriteIOEffect,
    RootEffect, TimeEffect, ReadDirEffect, ReadEnvEffect].}
  Source   Edit
proc call(client: SteamWebAPI; interfaceName: string; methodName: string;
          version: int; params: seq[Param]): JsonNode {....raises: [IOError,
    OSError, JsonParsingError, ValueError, Exception, HttpRequestError,
    LibraryError, SslError, TimeoutError, ProtocolError, KeyError], tags: [
    ReadIOEffect, WriteIOEffect, RootEffect, TimeEffect, ReadDirEffect,
    ReadEnvEffect].}
  Source   Edit
proc getServerInfo(client: SteamWebAPI): JsonNode {....raises: [IOError, OSError,
    JsonParsingError, ValueError, Exception, HttpRequestError, LibraryError,
    SslError, TimeoutError, ProtocolError, KeyError], tags: [ReadIOEffect,
    WriteIOEffect, RootEffect, TimeEffect, ReadDirEffect, ReadEnvEffect].}
  Source   Edit
proc getSupportedAPIList(client: SteamWebAPI): JsonNode {....raises: [], tags: [].}
  Source   Edit
proc newParam(name: string; value: string): Param {....raises: [], tags: [].}
  Source   Edit
proc newSteamWebAPI(): SteamWebAPI {....raises: [IOError, OSError,
    JsonParsingError, ValueError, Exception, HttpRequestError, LibraryError,
    SslError, TimeoutError, ProtocolError, KeyError], tags: [ReadIOEffect,
    WriteIOEffect, RootEffect, TimeEffect, ReadDirEffect, ReadEnvEffect].}
Create Steam client without key   Source   Edit
proc newSteamWebAPI(steamWebAPIKey: string): SteamWebAPI {....raises: [IOError,
    OSError, JsonParsingError, ValueError, Exception, HttpRequestError,
    LibraryError, SslError, TimeoutError, ProtocolError, KeyError], tags: [
    ReadIOEffect, WriteIOEffect, RootEffect, TimeEffect, ReadDirEffect,
    ReadEnvEffect].}
Create Steam client   Source   Edit