(edited by TimeBomb.3427)
API Lib for node.js
It looks great, nice job. I’ve been playing with writing an AMD module in a very similar fashion.
Thank you for your work, I may use it in the future.
Just what I was looking for, thanks!
Thanks for the feedback, all; I’m glad you found this useful.
Because the GW2 API is reliant on itself for certain pieces of information, some of you may find the function waterfall inside of the node module async quite useful. It runs an array of functions one after another, waiting for a callback to be made in each function before continuing to the next. Each function is passed the results of the last. See: https://github.com/caolan/async#waterfall
Here is an example usage of this function I whipped up. The wvw match data is passed to the world name data and that information is combined to get a list of all wvw match-ups by name rather than by world ID.
The code: http://pastebin.mozilla.org/2448260
I have just updated the github and npm of GW2NodeLib to add three new APIs:
guildDetails: /guildDetails.json
build: /build.json
colors: /colors.json