cbortz / vainglory-api-ruby Goto Github PK
View Code? Open in Web Editor NEWA Ruby libary wrapper for the Vainglory API
Home Page: https://rubygems.org/gems/vainglory-api
License: MIT License
A Ruby libary wrapper for the Vainglory API
Home Page: https://rubygems.org/gems/vainglory-api
License: MIT License
TBD
TBD
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?
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.
The CHANGELOG should contain pertinent information about each release, including any major changes and bug fixes.
VaingloryAPI::Client#players
should allow a developer to paginate results as per the Vainglory API "Pagination" documentation.
Successfully fixing this should bring us to v0.1.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.