Giter VIP home page Giter VIP logo

vainglory-api-ruby's People

Contributors

cbortz avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

ngn999

vainglory-api-ruby's Issues

Unable to pull match details (e.g. participants, roster)

My code looks something like this:

db = VaingloryAPI(api_key)
match_info = db.matches({"filter[playerIds]" => id, "page[limit]" => numMatches})

I'm looking for a full match response similar to the data that I get when I run the following curl command:

curl -g "https://api.dc01.gamelockerapp.com/shards/na/matches?filter[createdAt-start]=2017-04-20T13:00:30Z&sort=-createdAt" \
-H "Authorization: Bearer apikey"  \
-H "X-TITLE-ID: semc-vainglory" \
-H "Accept: application/vnd.api+json" | jq

Currently, my match_info from my code only returns the data array of the full match response and none of the included array. How can I get access to the included array?

Add support for GZIP encoding

The Vainglory API allows for requesting compressed responses if desired, so we should support that. The plan is to leave it disabled by default. When instantiating a new VaingloryAPI::Client a user should be able to pass in the option to enable it. For example:

VaingloryAPI.new("API_KEY", "na", gzip: true)

Additional information: https://developer.vainglorygame.com/docs#gzip


As a side note...

After looking at the previous example, I think I want to start accepting a single options parameter as a hash when instantiating new clients. The updated syntax might look like this:

VaingloryAPI.new("API_KEY", region: "na", gzip: true)

If I do implement this change, I should allow for backward compatibility because I am nowhere near ready to bump to v1.

CHANGELOG is incomplete

The CHANGELOG should contain pertinent information about each release, including any major changes and bug fixes.

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.