Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 30 2019 11:45
    Tolkyria commented #646
  • Jan 30 2019 11:44
    Tolkyria commented #646
  • Jan 16 2019 14:09
    patrickboesch starred arenanet/api-cdi
  • Jan 16 2019 03:23
    isand3r starred arenanet/api-cdi
  • Dec 09 2018 14:11
    queicherius commented #567
  • Dec 05 2018 16:57
    apoch closed #433
  • Dec 05 2018 16:57
    apoch commented #433
  • Dec 05 2018 16:53
    wafflebot[bot] unlabeled #527
  • Dec 05 2018 16:53

    apoch on master

    /v2/pvp/seasons: add .ranks. Merge pull request #535 from ar… (compare)

  • Dec 05 2018 16:53
    apoch closed #535
  • Dec 05 2018 16:53
    apoch closed #527
  • Dec 05 2018 16:45

    apoch on master

    add missing name tag to /v2/rac… Merge pull request #609 from Th… (compare)

  • Dec 05 2018 16:45
    apoch closed #609
  • Dec 04 2018 19:18
    darthmaim commented #640
  • Dec 04 2018 18:17
    apoch commented #640
  • Dec 04 2018 09:43
    darthmaim commented #640
  • Dec 03 2018 17:50
    Aonwy unlabeled #640
  • Dec 03 2018 17:49
    Aonwy closed #640
  • Dec 03 2018 17:47
    Aonwy labeled #645
  • Dec 01 2018 18:36
    strigefleur edited #645
Silver Golden
@Silveress_Golden_gitlab
Am I doing somethign seriously wrong?
Any request I do to https://api.guildwars2.com/v2/characters/<character>
Any request sets the date to now, grand, can work with that
But it sets teh expires to 5 min later, not when teh cache expires
Daniel Snider
@dsnider-anet
Are you talking about the Expires header?
Silver Golden
@Silveress_Golden_gitlab
yeah
no way to see how long a cache lasts for?
(sorry for the wall of text above, its doing my head in)
Daniel Snider
@dsnider-anet
I don't think so? I'm trying to remember how it works (I'm not at the office so I can't open up the code)
First, I don't think the expires header makes any guarantees about the actual resource's cache-time: https://tools.ietf.org/html/rfc7234#section-5.3
so it's not wrong per se

also: I think max-age from the cache-control header is supposed to supersede the Expires header:

If there is a Cache-Control header with the "max-age" or "s-maxage" directive in the response, the Expires header is ignored

Silver Golden
@Silveress_Golden_gitlab
maybe now that ye are here I should roll backa bit
Daniel Snider
@dsnider-anet
I think it's fairly typical to throw a nice round number into the max-age part of cache control instead of a precise number (since usually the server has no idea when the resource will invalidate anyway)
connection.execute("ROLLBACK");
Silver Golden
@Silveress_Golden_gitlab
is the cache for each request global: eg if gw2E requests that endpoint/account first it is cached then if I access it its served from that cache
Or is it cached for each client?
hehehehee
Daniel Snider
@dsnider-anet
caching is controllable per endpoint, but I believe the vast majority is global
Silver Golden
@Silveress_Golden_gitlab
hmmm
so if Gw2E requests trhe data first and I (within teh 5 min cache time) request it is there any way to see when teh cache was first served?
Daniel Snider
@dsnider-anet
I don't think so
Silver Golden
@Silveress_Golden_gitlab
thanks, this is going to be more complicated fun
Daniel Snider
@dsnider-anet
np, glad I could give you the bad news help
Silver Golden
@Silveress_Golden_gitlab
creating a droprate calculator/tracker, so now I am going to have to get the user to verify the before and after
tis not a bad thing, just means I have to get a bit mroe creative
oh by any chance would adding magicFind to teh account/character endpoints be on a list stuck to the underside of the table?
and send sanity coffee Irish Coffee
Daniel Snider
@dsnider-anet
I wonder if you could figure out the cache timing by slamming the endpoint until it flips over and recording the time
that might be worse for the servers than just handing out when the cache expires
Silver Golden
@Silveress_Golden_gitlab
technically, but that would nto be polite
Daniel Snider
@dsnider-anet
I see it mentioned here: arenanet/api-cdi#382
I'll take a look to see the feasibility of adding magic find on Monday
Silver Golden
@Silveress_Golden_gitlab
thank you, sorry to be digging into yer saturday?
(no ?)
Silver Golden
@Silveress_Golden_gitlab
If ye also have time looking into seeing if the cache time can be reduced would also be a huge benefit (if I am not being too presumsus that is)
Quaggan BooOOoot
@QuagganBooOOoot
New discussion in API Development:

Pulling specific info from API
by Rust O.6937 in API Development

https://api.guildwars2.com/v2/commerce/listings/1006

How would I go about pulling only the highest buy order / lowest sell order from this listing?

Daniel Snider
@dsnider-anet
@Silveress_Golden_gitlab In regards to adding magic find; I didn't look too deeply, but it's certainly non-trivial to add it
Silver Golden
@Silveress_Golden_gitlab
grand, stick it back to the underside of teh table then
Quaggan BooOOoot
@QuagganBooOOoot
New discussion in API Development:

MumbleApi doubt
by Elrey.5472 in API Development

I'm trying to read stuff from the mumblelink shared memory file following this: https://wiki.guildwars2.com/wiki/API:MumbleLink using Python 3.6

import mmap
import struct
import json

def read_memory():
    """Based on: https://wiki.guildwars2.com/wiki/API:MumbleLink"""
    # Access the memory
    size = "IL3f3f3f512s3f3f3f290s256s2048s"
xvwyh
@xvwyh
Is the items endpoint seriously still broken? How are people faring by?
darthmaim
@darthmaim
?
darthmaim
@darthmaim
yep, thats still an issue
xvwyh
@xvwyh
Any workarounds? Secondary source for API queries, database dumps?
Silver Golden
@Silveress_Golden_gitlab
@xvwyh what is that item? Is it currently unobtainable?
Silver Golden
@Silveress_Golden_gitlab
I dont think ye can actually obtain it anymore
xvwyh
@xvwyh
It may not be obtainable now, but isn't the API supposed to flag items that are seen in the game, as opposed to obtainable? This item is clearly "seen", as it is in my bank, so there's no reason for it to be hidden.
Silver Golden
@Silveress_Golden_gitlab
that si teh whitelist
things are only added to teh whitelist when a player obtains them, and a while back the whitelist got deleted and thus had to be rebuilt
so while ye have it you havent obtained it recently