These are chat archives for arenanet/api-cdi

22nd
Mar 2016
windwarrior
@windwarrior
Mar 22 2016 00:39
well not too much control on my end, javascript clientside application that tries to cluster as many calls as possible but 1call/1sec is not something my apps do :O
David Reeß
@queicherius
Mar 22 2016 13:11
@lye Just confirming the fix works, everything ran through and nothing got thrown out for "endpoint requires authentication". Thanks again for the fast response. :)
smiley
@codemasher
Mar 22 2016 17:39
wow, after spending months in the CLI it's kinda refreshing to deal with actual HTML again... :D
never thought I'd hear someone say that
smiley
@codemasher
Mar 22 2016 17:40
haha
but then again, when you build your own framwework for website stuff and you have finished the basement and the roof of your house, some walls are really cool ;)
FWIW, here's the API changelog for today's API deploy:
  • Adds /v2/itemstats implementation(requires backend support).
  • Adds stat selections to inventories (requires backend support and config change).
  • Adds weapon skills to /v2/professions (requires backend support).
  • Add more useful fields to /v2/guild and /v2/guild/search (not turned on yet).
  • Split /v2/guild into authenticated/unauthenticated versions.
  • Add PvP match history to /v2/guild/:id/teams.
  • Relax authentication requirement for /v2/pvp (mundane endpoint).
  • Fix date TZ issue for all endpoints using seconds-since-2001 data.
There's some other changes (slot skills in /v2/characters, e.g.) that happened too, still digging through which backend changes are ready.
Nabrok
@Nabrok
Mar 22 2016 18:21
Nice
What is the date TZ issue?
var d = new Date(Date.UTC(2001, 0));
d.setSeconds(d.getSeconds() + secondsSince2001);
Is not the same as
var d = new Date(Date.UTC(2001, 0) + secondsSince2001);
for reasons that still elude me. The first one changes the TZ from UTC to local time.
So /v2/pvp/games had timestamps that were 8 hours off.
Nabrok
@Nabrok
Mar 22 2016 18:23
Ah, that's why that was.
There were a couple of other endpoints (/v2/guild/:id/members I think), but it was all the same problem
Uhh I probably should have given people heads up about that fix before deploying it.
smiley
@codemasher
Mar 22 2016 18:27
it's always better to have something unexpectedly working instead of broken though :D
Nabrok
@Nabrok
Mar 22 2016 18:27
Yeah, my game times seem reasonable now.
Whelp, /v2/characters.skills is totally broken.
That's kind of terrifying.
Nabrok
@Nabrok
Mar 22 2016 18:31
So, internally you store dates as seconds since 2001?
we have a couple of time formats, but that's one of them
David Reeß
@queicherius
Mar 22 2016 20:43

we have a couple of time formats, but that's one of them

That sounds fun to deal with. :D

eh, it's mostly depending on what resolution is required
for pvp matches and stuff second resolution is fine; for skill recharges a higher resolution format is used
David Reeß
@queicherius
Mar 22 2016 20:44
That sounds a lot more reasonable than the horror stories I had in mind.
("skill recharges" as in the uhh, cooldowns that are stored in your character data)
yeah it's not too bad, tbh
and there's a couple of backend services that talk ISO-8601 too (they're probably storing seconds-since-2001 internally)
Shii Kayano
@BryghtShadow
Mar 22 2016 23:03
@lye new Date(Date.UTC(2001, 0) + secondsSince2001) isn't this adding it to milliseconds...?
one second please
okay, phew, the typo was just in gitter
the deployed code multiplies secondsSince2001 by 1000 before adding.
Pat Cavit
@tivac
Mar 22 2016 23:05
muahaha
today has not been a good day
there's missing something on that list :P
this channel is only tangentially related to game design/development
smiley
@codemasher
Mar 22 2016 23:12
hehe
(in disguise)
windwarrior
@windwarrior
Mar 22 2016 23:14
ooooeeeh itemstats :D
they still need a deploy and a brief period to get the whitelist populated, but it should be ready for the next release
The PR is here: arenanet/api-cdi#261
Nabrok
@Nabrok
Mar 22 2016 23:18
and @tivac already dismissed it
Shii Kayano
@BryghtShadow
Mar 22 2016 23:22
I feel so dirty using someone else's key to extract data from endpoints that require a leader's key...
Nabrok
@Nabrok
Mar 22 2016 23:22
Fortunately I am the leader of my guild
I should make myself the leader of the arenanet guild
Pat Cavit
@tivac
Mar 22 2016 23:23
Reddit: omg what could it be :grin:
Me: A redirect :expressionless:
@BryghtShadow but yeah I need to talk to people to get a better system in place, talking's not really my strong spot
I'm more of an expert at eating and sleeping
windwarrior
@windwarrior
Mar 22 2016 23:42
you're a sloth then