Giter VIP home page Giter VIP logo

warzone.net's Introduction

Nuget

Warzone.NET

A C# wrapper around the Call of Duty API, primarily focussed on allowing users to fetch Warzone related data.

Usage

Setup

Accessing any of the endpoints requires the user to create a new WarzoneClient and then log in with a valid set of Call of Duty credentials.

var client = new WarzoneClient();
var loginResult = await client.LoginAsync("[email protected]", "MyPassword");

The LoginAsync method returns a bool indicating whether the login attempt was successful. If true then you are good to go with the remainder of the endpoints!

Retrieving User Stats

After logging in successfully you can proceed to use the other available methods that the Warzone Client provides. For example, to fetch a summary of the user's last twenty games you can use the following snippet

var data = await client.GetLastTwentyWarzoneMatchesAsync("MyGamertag", Platforms.Xbox);

If your login session has expired this method will throw a NotLoggedInException and you will need to reauthenticate using the LoginAsync method.

Current features

  • Summarized data for the user's last twenty Warzone games - GetLastTwentyWarzoneMatchesAsync (Only standard BR gamemodes)
  • Summarized data for the user's Warzone games between a start and end date GetWarzoneMatchesAsync (Only standard BR gamemodes)

warzone.net's People

Contributors

cst95 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.