These are chat archives for arenanet/api-cdi

26th
Aug 2017
David Reeß
@queicherius
Aug 26 2017 09:41
@lye Updated the list of wvw/pvp legendary armors after the last whitelisting, still a whole bunch missing: Fuck off gitter
David Reeß
@queicherius
Aug 26 2017 09:54
And these are still missing from account/home/nodes: Advanced Leather Rack, Advanced Cloth Rack, Black Lion Hunter's Board, Orrian Oyster Node
ChieftainAlex
@ChieftainAlex
Aug 26 2017 11:20
realised how out of practise I am with js: https://wiki.guildwars2.com/wiki/Widget:Gemstore_catalogue took way too long
JamEngulfer
@JamEngulfer
Aug 26 2017 12:38
Is there a generic 'is the API up' url we can check? I'm using api.guildwars2.com currently, but I wondered if there's a better url to query
Archomeda
@Archomeda
Aug 26 2017 13:34
oh nice @ChieftainAlex
however, if the webteam decides to put an alert there, it would also show up on the wiki, i think :P
yesterday i started a nodejs library based on @queicherius's api client, it kinda works as well
Archomeda
@Archomeda
Aug 26 2017 13:40
i do wonder where it gets the current gem price from
Archomeda
@Archomeda
Aug 26 2017 15:10
eh... i think that goes over the game connection instead :(
Eearslya Sleiarion
@Eearslya
Aug 26 2017 16:13
Archomeda
@Archomeda
Aug 26 2017 16:13
no, regarding the gem store itself
ChieftainAlex
@ChieftainAlex
Aug 26 2017 16:18
@JamEngulfer - yeah i think normally you just check to see if https://api.guildwars2.com/ returns ["v1","v2"] or [] or nothing..
Darqam
@Darqam
Aug 26 2017 20:15
woah woah woah, do we actually have a way to see via web request what is on the gemstore now?
John Carroll
@johncarroll
Aug 26 2017 21:40
if anyone cares, i managed to find out how rounding works on the TP. it rounds up and down. listing fee happens when things are listed, so you can manipulate it if you care about saving a few copper. Exchange fee happens on when things are sold and in what quantity. so if you sell 250 at a time it'll be pretty accurate, but if it's one at a time, it could be +-.5c each time, so up to +-1s25c for a stack of items
Archomeda
@Archomeda
Aug 26 2017 22:20
@Darqam these files can be regenerated whenever there's a new build, so... you have to get the new URLs every time
Darqam
@Darqam
Aug 26 2017 22:21
the build part is evident, but how is the last part 23cb5c2c built up?
Archomeda
@Archomeda
Aug 26 2017 22:21
file hash whenever the js file was built
it's basically to bust cache whenever there's a new file version
that way you can just cache that file basically forever until there's a new file
and that new file will have a different file hash (most likely)
Darqam
@Darqam
Aug 26 2017 22:23
and said hash is found out how?
that's where they are linked from
you can't determine the hash yourself if you don't have the file :P
they are determined on build time
Darqam
@Darqam
Aug 26 2017 22:25
yeah ok that makes more sense
Archomeda
@Archomeda
Aug 26 2017 22:25
our build editor generates those hashes too
makes it easier for us to bust cache whenever there's a new version
that way people don't have to ctrl+f5 :P