All Projects → jasonodonnell → go-opendota

jasonodonnell / go-opendota

Licence: MIT license
Go client library for accessing the OpenDota API

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to go-opendota

connect
CLI tool and Go client library for the Kafka Connect REST API
Stars: ✭ 45 (+32.35%)
Mutual labels:  api-client, go-library
nomisr
Access UK official statistics from the Nomis database through R.
Stars: ✭ 30 (-11.76%)
Mutual labels:  api-client
airtable
Airtable API Client for Go
Stars: ✭ 25 (-26.47%)
Mutual labels:  api-client
Dota2WebApi
A Dota 2 Web API for Liquipedia
Stars: ✭ 24 (-29.41%)
Mutual labels:  dota2
FTAPIKit
Declarative and generic REST API framework using Codable.
Stars: ✭ 18 (-47.06%)
Mutual labels:  api-client
react-google-sheet
Pulling data from Google Sheets with React components
Stars: ✭ 24 (-29.41%)
Mutual labels:  api-client
connectapi
An R package for interacting with the RStudio Connect Server API
Stars: ✭ 26 (-23.53%)
Mutual labels:  api-client
square-python-sdk
Python client library for the Square API
Stars: ✭ 72 (+111.76%)
Mutual labels:  api-client
froggit-go
Froggit-Go is a universal Go library, allowing to perform actions on VCS providers.
Stars: ✭ 19 (-44.12%)
Mutual labels:  go-library
als typograf
Ruby client for ArtLebedevStudio.RemoteTypograf Web Service.
Stars: ✭ 15 (-55.88%)
Mutual labels:  api-client
tesla api
Lightweight Python API client for the Tesla API.
Stars: ✭ 73 (+114.71%)
Mutual labels:  api-client
pyracing
A complete overhaul of the original ir_webstats; pyracing is an API client/wrapper for iRacing, the leading online simracing service. pyracing handles the queries to iRacing's (known) URL endpoints and maps the returned JSON data into structured objects, allowing for easier access to the data.
Stars: ✭ 52 (+52.94%)
Mutual labels:  api-client
notionapi-agent
Unofficial Node.js API client for Notion.so
Stars: ✭ 89 (+161.76%)
Mutual labels:  api-client
game apis
This repository is for integrating with different apis to allow you to pull player or game data
Stars: ✭ 24 (-29.41%)
Mutual labels:  dota2
digital-ocean
Idiomatic Clojure client for Digital Ocean that makes it easy to boot virtual servers from your REPL
Stars: ✭ 34 (+0%)
Mutual labels:  api-client
go-typetalk
go-typetalk is a GO client library for accessing the Typetalk API.
Stars: ✭ 19 (-44.12%)
Mutual labels:  api-client
CryptoCurrency.Net
CryptoCurrency.Net
Stars: ✭ 21 (-38.24%)
Mutual labels:  api-client
restofus
Restofus - a cross-platform (REST) API client.
Stars: ✭ 18 (-47.06%)
Mutual labels:  api-client
pimba
Pimba is a minimalist command-line tool written in Go to publish and serve static files.
Stars: ✭ 12 (-64.71%)
Mutual labels:  api-client
goco
Connecting to Google API has never been easier!
Stars: ✭ 14 (-58.82%)
Mutual labels:  api-client

go-opendota Build Status Go Report Card GoDoc

Go-OpenDota is a simple Go package for accessing the OpenDota API.

Successful queries return native Go structs.

Services

  • Benchmarks
  • Distributions
  • Explorer
  • Health
  • Hero Stats
  • Heroes
  • Leagues
  • Live
  • Matches
  • Metadata
  • Players
  • Pro Matches
  • Pro Players
  • Public Matches
  • Rankings
  • Records
  • Replays
  • Schema
  • Search
  • Status
  • Teams

Install

go get github.com/jasonodonnell/go-opendota

Examples

Match

// OpenDota client
client := opendota.NewClient(httpClient)

// Get Match Data
match, res, err := client.MatchService.Match(3559037317)
fmt.Println(match.DireTeam.Name, "VS", match.RadiantTeam.Name)

Player

// OpenDota client
client := opendota.NewClient(httpClient)

// Get Player Data
player, res, err := client.PlayerService.Player(111620041)
fmt.Println(player.Profile.Name, player.SoloCompetitiveRank)

// Player Param
params := &opendota.PlayerParam{
	Win: 1,
}
// Get Won Matches For Player
wins, res, err := client.PlayerService.Matches(111620041, params)
for _, game := range wins {
	fmt.Println(game.MatchID, game.HeroID)
}

License

MIT License

Gopher

Thanks to Maria Ninfa for the Gopher!

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].