API resolution / caching

API resolution / caching

in API Development

Posted by: das Keks.5403

das Keks.5403

Hi.

What’s the time resolution of:
/v2/account/wallet
/v2/account/materials
/v2/account/bank
/v2/characters

How fast will the current data be available via the endpoints and will the results be cached for a while before providing new data?

API resolution / caching

in API Development

Posted by: Lawton Campbell

Lawton Campbell

Web Programmer

Next

Those are all on a ~5 minute cache.

API resolution / caching

in API Development

Posted by: das Keks.5403

das Keks.5403

Thanks for the information!
I think I’ll change the update frequency of my application to a little more than 5 minutes to prevent getting the same result twice.

(edited by das Keks.5403)

API resolution / caching

in API Development

Posted by: Nabrok.9023

Nabrok.9023

If I called /v2/characters/[name] with a key that doesn’t have the builds permission and then immediately called it again with a key that does, would the second request just return the cached data from the first request or would it also include the specializations?

“I’m not a PvE, WvW, or PvP player – I am a Guild Wars 2 player”
Tarnished Coast – Dissentient [DIS]
All classes

API resolution / caching

in API Development

Posted by: Lawton Campbell

Previous

Lawton Campbell

Web Programmer

Next

If I called /v2/characters/[name] with a key that doesn’t have the builds permission and then immediately called it again with a key that does, would the second request just return the cached data from the first request or would it also include the specializations?

Cached data from the first request. The backend server just pulls the entire account/character blob from the database and caches it in its entirety — the permissions are enforced when serializing out the blob.

API resolution / caching

in API Development

Posted by: CodeX.8649

CodeX.8649

API resolution / caching

in API Development

Posted by: Lawton Campbell

Previous

Lawton Campbell

Web Programmer

Nope, cache-control request headers are completely ignored.

Otherwise one of the game db servers would fall over <3