Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

danieljennings/dota2webapiexamples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Dota 2 WebAPI Examples#

WebAPI forum: http://dev.dota2.com/forumdisplay.php?f=411

This GitHub repository serves as a home for source code samples that demonstrate how to use different parts of the Dota 2 WebAPI, and tie it in to other libraries and good practices, such as using Memcached to cache WebAPI results. These are specific examples that I've written in my free time using publicly available WebAPI methods to help give Dota 2 WebAPI newcomers starting points for projects that they might want to build.


###Example 1: Live League Game Signature Image (live_league_signature.php)###

This example is a feasible forum signature that will show forum-goers the currently-live league matches occuring on Dota 2 at the time. It will rotate through all of the live league games, giving each one 3.5 seconds of visibility before moving onto the next and wrapping back around to the first.

This image is an example of what the signature looks like, but is not live itself. Visit this link to see a live version.

Signature

#####Requirements:#####

#####Demonstrates:#####

  • WebAPI: GetLeagueListing
  • WebAPI: GetLiveLeagueGames
  • Caching: Using Memcached to reduce latency by caching WebAPI results
  • Images: Using ImageMagick to render images on-demand.

About

Dota 2 WebAPI Examples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages