Is Javascript enough to use the API?

#1 - May 23, 2013, 1:45 a.m.
Blizzard Post

I’m just starting to look into the possibilities of the API, but I’m not entirely sure where to begin.

Basically, I’m trying to figure out if it’s possible to retrieve simple data by using purely Javascript on a web page, or whether I’d actually need to learn php/c/java to do that.

By simple data, I mean an event state, or an item’s recipe info etc.

#19 - May 23, 2013, 2:28 p.m.
Blizzard Post

With properly cached responses JavaScript is fine, you just have to set the “If-Modified-Since” header to avoid the round-trip.

ArenaNet doesn’t cache the JSON response though.

> Cache-Control:no-cache

Yeah, maybe we can set longer cache periods for more static content like the event names or item ids. I started by playing it safe, since I’ve been seeing sporadic reports of events being out-of-date and I suspect that this might be one of the causes.