Code Monkey home page Code Monkey logo

halo-api's Introduction

Halo API - Halo 5, and Halo Wars 2 API

03/12/2020 - Undertaking project review to move to .netcore3.0 in prep for Halo Infinity.

A C# Wrapper for the official Halo 5 and Halo Wars 2 API's that can be seen at http://developer.haloapi.com - Easy to use, and implement. It contains all current endpoints, tests, a rate handler and a cache system!

Enjoy Halo 5 Guardians, and Halo Wars 2 Game Data faster than ever before with this wrapper. The API is updated regularly with optimisations, new endpoints and more! Download it now, or utilise it via NuGet

More documentation

Future Features On the way

  • All Halo Wars 2 Endpoints
  • Solution improvements

Help?

Contact me on Twitter @Glitch100

Notes

Please note that if you pull the repo the tests will need your API Key in order to pass as I haven't interfaced out the HttpClient and they rely on genuine data.

halo-api's People

Contributors

baddub avatar glitch100 avatar jacobsnyder avatar wasabifan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

halo-api's Issues

Bug #2: TeamStat Model

TeamStat.Score should be an int, but the API currently returns an unsigned int. The HaloEzAPI wrapper model has the property as an int, so when an unsigned int that's too large for an int comes through, it explodes.
There's a bug, but whose?
On one hand, the API shouldn't be returning an unsigned int because score can be negative. On the other, the API currently does return an unsigned in, so the model should represent this.

https://github.com/glitch100/Halo-API/blob/master/HaloEzAPI/Model/Response/Stats/TeamStat.cs#L8
vs.

https://github.com/gitFurious/HaloSharp/blob/master/Source/HaloSharp/Model/Stats/CarnageReport/Common/TeamStat.cs#L12

Medal Types Error

The MedalType enum errors out as there is no type set for new types i.e ball

GetArenaPostGameCarnageReport: JSON integer is too large or small for an Int32

Looks similar to issue #2.

GET /stats/h5/arena/matches/c44a03be-36c3-4327-8946-7dab19e91c1d HTTP/1.1

Additional information: JSON integer 4248941445 is too large or small for an Int32. Path 'PlayerStats[4].MetaCommendationDeltas[0].PreviousMetRequirements[0].Data1', line 1, position 16559.

Sure enough, all of those values are very large. Not sure what the data type should be, but almost certainly not an Int32 :)

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.