underfisk / blizzhub-ts Goto Github PK
View Code? Open in Web Editor NEWA typescript implementation of the new battle.net developer API updated with the latest features provided by Blizzard
A typescript implementation of the new battle.net developer API updated with the latest features provided by Blizzard
For example, in diablo3.js, you have a URL inside a template, but the template has a line break in the middle of it:
this.getApiHero = (region, bnet, heroId, locale) => {
return httpRequest_1.HttpRequest.get(`https://${region}.api.blizzard.com/d3/profile/${bnet}/hero/${heroId}
?locale=${locale}&access_token=${this.token.identifier}`);
};
This is causing the library to actually insert a line break in the URL, which results in a 404 from Blizzard. To fix this, don't use line breaks inside templates when defining URLs:
this.getApiHero = (region, bnet, heroId, locale) => {
return httpRequest_1.HttpRequest.get(`https://${region}.api.blizzard.com/d3/profile/${bnet}/hero/${heroId}?locale=${locale}&access_token=${this.token.identifier}`);
};
This type of error occurs in a whole bunch of places in diablo3.js and wow.js. I wanted to do a pull request for this, but apparently wow.js is missing from this repository. Please fix!
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.