Guild Wars 2 API v2 – War Score Lookup under JavaScript

Over the last few weeks had quite a bit of time away from SourceMod development and doing more stuff in Web based languages.

My last project was a small script for www.Vabbi.eu for looking up war scores with the Guild Wars 2 v2 API, utilising Axios for the HTTP Requests. That everyone is welcome to use – Licensed under the GPLv3.

https://gist.github.com/dubbeh/59cd06dc15dd1fad17d98cee53cfa718

All you need to do is change line 12 in index.html to your own server name (Make sure to follow the standard server names returned by the API – Which can be found here).

<script>
gw2api_get_matchup_scores (“My Server Name”);
</script>

Currently in the process over moving the code over to TypeScript and using some OOP, which is my next step and get a lot more data displayed in a pretty way.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.