v2/account/masteries erroneous

v2/account/masteries erroneous

in API Development

Posted by: Dorazur.9420

Dorazur.9420

v2/account/masteries returns for each track
either nothing if current level is 0 (that is correct)
either the max level minus 1 of the track instead of the actual level for the account

v2/account/masteries erroneous

in API Development

Posted by: Elfo Bianco.3786

Elfo Bianco.3786

either the max level minus 1 of the track instead of the actual level for the account

That is right, because the first level is 0, so if a mastery has 5 levels you make a FOR cicle like this:
for (x=0; x < mastery.levels.length; x++)
In the example it would be for (x=0; x < 5; x++) , so x goes from 0 to 4 that are exactly five levels (0,1,2,3,4).

v2/account/masteries erroneous

in API Development

Posted by: Dorazur.9420

Dorazur.9420

The issue is not the minus 1 but the level returned is always the last (saying n-1) instead of the actual which can be in range 0 to n-1

v2/account/masteries erroneous

in API Development

Posted by: Lawton Campbell

Lawton Campbell

Web Programmer

I’m seeing the same issue with my API key — it appears to be returning bogus values. Looking into it.

EDIT: Found the bug, it was something incredibly stupid. It’s a bit late in the day to do a deploy so I’ll put it off until 5PM tomorrow.

(edited by Lawton Campbell.8517)

v2/account/masteries erroneous

in API Development

Posted by: Dorazur.9420

Dorazur.9420

I see no change yet. Has the deploy been done ?