Socket
Socket
Sign inDemoInstall

dota2-webapi

Package Overview
Dependencies
52
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dota2-webapi

DotA 2 WebApi === Easy-to-use API client for the Dota 2 WebAPI [http://wiki.teamfortress.com/wiki/WebAPI#Dota_2](http://wiki.teamfortress.com/wiki/WebAPI#Dota_2).


Version published
Maintainers
1
Install size
5.74 MB
Created

Readme

Source

DotA 2 WebApi

Easy-to-use API client for the Dota 2 WebAPI http://wiki.teamfortress.com/wiki/WebAPI#Dota_2.

Installation

npm install dota2-webapi

How to use

The following example shows you how to use this library. In this case we are getting the league listing provided by the API.

var webapi = require('dota2-webapi');

var WebApi = new webapi('APIKEY');

WebApi.getTournaments('en', function(e, tournaments){
	if(e){
		console.log(e);
	}else{
		console.log(tournaments);
	}
})

FAQs

Last updated on 10 May 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc