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
ChieftainAlex
@ChieftainAlex
guess it's just forgotten
Quaggan BooOOoot
@QuagganBooOOoot
New discussion in API Development:

Novelties API Problem
by Qlak.4387 in API Development

Hello!

I am currently working on fun mobile application, half-way done already and recently I wanted to add cool new feature, which was supposed to make use of all the gizmos, special and fun items from character's inventory, but then it struck me that vast amount of those items was moved to the Novelties Wardrobe section and I can't find and access them anymore in the way I was going to.

So there is my question: How do I access Novelties Wardrobe API? I could not find anything about Novelties on wiki. Maybe it was not added yet? Previously I was going to iterate through every single inventory slot and make list of special items, but now I'm not sure how to do it.

In the API Changelog I can see that last change was done on June 5th and I believe Novelties were added later on.

What can I do to get information about items that were unlocked and items currently in-use and assigned to four novelty slots?

Quaggan BooOOoot
@QuagganBooOOoot
New discussion in API Development:

Firebrand Tome Skills
by Target.6379 in API Development

Hey,

Do we have any notice on when Firebrand Tome skills will be added to the API?

The same applies to the "new" stolen skills on thief/daredevil for raid encounters i.e. Detonate Plasma or Magnetic Bomb.

Any news on this would be great

Archomeda
@Archomeda
derRAV3N
@derRAV3N
Yea :(
Daniel Snider
@dsnider-anet
API Updates:
  • v2/raids has been updated to include the previously missing mythwright_gambit.
  • A preliminary v2/mounts has been added. Note: newer mount skins are missing, the skill ids are dead links, the icons links are broken, and the account unlock portion doesn't exist.
Jiří Sejkora
@Sejsel
Spirit Woods and Twisted Castle are still checkpoints even though they now award LI. Is that on purpose?
Daniel Snider
@dsnider-anet
API Updates:
  • v2/mounts has been updated to fix the broken icon links
Silver Golden
@Silveress_Golden_gitlab
Thanks for all the work Daniel, its good to see the api (visibly) getting some love
Quaggan BooOOoot
@QuagganBooOOoot
New discussion in API Development:

Lore Text on WP and Points of interest
by cyhadam.3082 in API Development

What would be the easiest way for me build a plugin that would present in-game lore text upon getting a point of interest or waypoint unlocked? Furthermore, is there any way to pull GW2 wiki information and make that presentable in-game upon walking over certain parts of a map. I think it would not break game immersion and help build game lore.

Quaggan BooOOoot
@QuagganBooOOoot
New discussion in API Development:

Calculating API Lag
by Dash.3179 in API Development

I'm working on developing a drop rate tracker, however I'm bumping into an issue with lag from the api.
When I retrieve data from api.guildwars2.com/v2/characters/Character_Name/inventory, the data is out of date... historically by anywhere between 30-50s (estimate).
So far I've been getting around this by setting a 60s countdown timer, however recently this lag has been getting worse, and is now almost always over a minute out of sync.
I realise this is simply the nature of managing a server such as this, and want you to know I'm not complaining about it... but when you have to wait 5 minutes for the cache to clear, actually testing to make sure this timer is right in-program is basically impossible.

Is there any way to find out the current lag for endpoint requests in the api?
Would it be possible to include a timestamp on requests? That way It'd be possible to automate the countdown timer to sync with the server on first request.

Silver Golden
@Silveress_Golden_gitlab
Is there any reason to use https://api.guildwars2.com/v2/characters/<character>/inventory over https://api.guildwars2.com/v2/characters/<character> ?
yes it has a smaller size but ti dosent provide ye any cache info
Silver Golden
@Silveress_Golden_gitlab
Gah
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 ?)