All Projects → luanruisong → g-steam

luanruisong / g-steam

Licence: Apache-2.0 license
steam web api for golang

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to g-steam

SteamAchievementNotifier
Steam Achievement Notifier is an Electron application that shows a customisable notification when you unlock any Steam Achievement! It uses the Steam Web API to track achievement stats in real time, and displays an achievement summary within the notification.
Stars: ✭ 77 (+250%)
Mutual labels:  steam, steam-api, steamwebapi
Steamcmd Autoupdate Any Gameserver
Windows SteamCMD to autoupdate and install any game server steam cmd settings configurable lots of useful features. This batch script will keep your game servers automaticly updated updating intervals announce the server is shutting down for updates etc all configurable.
Stars: ✭ 77 (+250%)
Mutual labels:  steam, steam-api
steam-openid-connect-provider
Steam OpenID Connect Identity Provider (IdP)
Stars: ✭ 40 (+81.82%)
Mutual labels:  steam, steam-api
Steamforwarder
steam_api.dll implementation for wine. Your windows games now can interact with your linux steam! (This repo mirrors https://gitlab.com/xomachine/SteamForwarder)
Stars: ✭ 190 (+763.64%)
Mutual labels:  steam, steam-api
steam community market
Get item prices and volumes from the Steam Community Market using Python 3
Stars: ✭ 24 (+9.09%)
Mutual labels:  steam, steam-api
Personal Influxdb
Import data from various APIs into InfluxDB
Stars: ✭ 51 (+131.82%)
Mutual labels:  steam, steam-api
Async Gamequery Lib
A high-performance java game query library designed for steam/source based games and others
Stars: ✭ 88 (+300%)
Mutual labels:  steam, steam-api
SteamCMD-AppID-List
Complete Steam AppID List
Stars: ✭ 12 (-45.45%)
Mutual labels:  steam, steam-api
php-steam-web-api-client
Automatically generated api client for the Steam Web API.
Stars: ✭ 79 (+259.09%)
Mutual labels:  steam, steam-api
CSGO-Overpay-Bot
No description or website provided.
Stars: ✭ 31 (+40.91%)
Mutual labels:  steam, steam-api
market-pricing
Wrapper for the unofficial Steam Market Pricing API
Stars: ✭ 21 (-4.55%)
Mutual labels:  steam, steam-api
Steam Market
Find arbitrages on the Steam Market.
Stars: ✭ 25 (+13.64%)
Mutual labels:  steam, steam-api
Archisteamfarm
C# application with primary purpose of idling Steam cards from multiple accounts simultaneously.
Stars: ✭ 7,219 (+32713.64%)
Mutual labels:  steam, steam-api
Steamworks
Exposing SteamWorks functions to SourcePawn.
Stars: ✭ 70 (+218.18%)
Mutual labels:  steam, steam-api
Hourboostr
Two programs for idling Steam game hours and trading cards
Stars: ✭ 372 (+1590.91%)
Mutual labels:  steam, steam-api
Punk
⚡ Alternative cross-platform Steam client for desktop
Stars: ✭ 87 (+295.45%)
Mutual labels:  steam, steam-api
InternalSteamWebAPI
Documenting the unofficial and internal Steam Web API
Stars: ✭ 126 (+472.73%)
Mutual labels:  steam, steam-api
steam-stylegan2
Train a StyleGAN2 model on Colaboratory to generate Steam banners.
Stars: ✭ 30 (+36.36%)
Mutual labels:  steam, steam-api
download-steam-reviews
Download Steam reviews for any game. Available on PyPI.
Stars: ✭ 26 (+18.18%)
Mutual labels:  steam, steam-api
Steampy
A Steam trading library for python 3
Stars: ✭ 212 (+863.64%)
Mutual labels:  steam, steam-api

g-steam

steam web api golang realize

🚀Installation

go get -u github.com/luanruisong/g-steam

🔔Premise

Before using, you must go to steam to apply for your key.

Usage

Basic usage

    //Create client
    client := steam.NewClient("appkey")
    //Get the render address of steam
    //path -> steam openid Login authentication address
    //callbackPath -> steam browser url to redirect to after successful authentication
    path := client.RenderTo(callbackPath)
    
    //Create receiving return object
    res, err := client.OpenidBindQuery(request.URL.Query())
    fmt.Println(res, err)
    fmt.Println(res.GetSteamId()) //Get steamid

    //Create api object
    api := client.Api()
    //raw return
    raw, err := api.Server("ISteamUser").//Set up service interface
        Method("GetPlayerSummaries").//Set access function
        Version("v0002").//Set version
        AddParam("steamids", "76561198421538055").//Setting parameters (If the key parameter is not set, the client's appKey will be added by default)
        Get(nil) //Initiate a request, and support the incoming structure pointer to receive parameters
    fmt.Println(raw, err) 

Package API

In addition to providing basic encapsulation, we also encapsulate common APIs to make it more convenient to use.

    //Use client to create related server
    appService := isteam_app.New(client)
    iplyerSercer := iplayer_service.New(client)
    economyService := isteam_economy.New(client)
    newsService := isteam_news.New(client)
    remoteStorageService := isteam_remote_storage.New(client)
    userService := isteam_user.New(client)
    userStatsService := isteam_user_stats.New(client)
    util := isteam_webapi_util.New(client)
    //Call the server wrapper function

🎉Contribute code

Open source projects are inseparable from everyone’s support. If you have a good idea, encountered some bugs and fixed them, and corrected the errors in the document, please submit a Pull Request~

  1. Fork this project to your own repo
  2. Clone the project in the past, that is, the project in your warehouse, to your local
  3. Modify the code
  4. Push to your own library after commit
  5. Initiate a PR (pull request) request and submit it to the provide branch
  6. Waiting to merge

📕License

Distributed under MIT License, please see license file within the code for more details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].