src/steam/client

  Source   Edit

Author:levshx
Version:0.0.2

Types

Notifications = object
  trades*: int
  unknown2*: int
  community*: int
  comments*: int
  unknown5*: int
  friends*: int
  unknown8*: int
  messages*: int
  unknown10*: int
  unknown11*: int
  Source   Edit
SteamClient = object
  httpclient: HttpClient
  session: SessionData
  captcha_gid: string
  Source   Edit

Procs

proc auth(client: var SteamClient; username: string; password: string;
          secret = ""; captcha_text = ""): bool {....raises: [],
    tags: [RootEffect, ReadIOEffect, WriteIOEffect, TimeEffect].}
Performs Steam user authorization and saves the session in the SteamClient object.   Source   Edit
proc commentProfile(client: var SteamClient; message: string; user_id: int64): bool {.
    ...raises: [], tags: [RootEffect, ReadIOEffect, WriteIOEffect, TimeEffect].}
Write a comment on the Steam user profile.   Source   Edit
proc getNotifications(client: var SteamClient): Notifications {....raises: [],
    tags: [RootEffect, ReadIOEffect, WriteIOEffect, TimeEffect].}
Get the number of Steam notifications (not a callback).   Source   Edit
proc loadSession(client: var SteamClient; path: string): bool {....raises: [],
    tags: [ReadIOEffect, WriteIOEffect].}
Performs the serialization of a json file into a Steam user session.   Source   Edit
proc newSteamClient(): SteamClient {....raises: [LibraryError, SslError, Exception,
    IOError], tags: [RootEffect, ReadDirEffect, ReadEnvEffect].}
Create Steam client   Source   Edit
proc saveSession(client: SteamClient; path: string): bool {....raises: [],
    tags: [WriteIOEffect].}
Performs serialization of the user's session into a json file.   Source   Edit