Fractal dailies for tomorrow?

Fractal dailies for tomorrow?

in API Development

Posted by: Aether.7095

Aether.7095

Hi!

So we got this endpoint which shows a list of today’s fractal dailies:

https://api.guildwars2.com/v2/achievements/categories/88

Is there something similar for tomorrow’s fractal dailies too? Like the way it is with all other dailies now.

Guild Wars since 2005.
Member of Silver Sunshine.

Fractal dailies for tomorrow?

in API Development

Posted by: Lawton Campbell

Lawton Campbell

Web Programmer

Next

Not currently, no. I’m really tempted to just throw that achievement category into /v2/achievements/daily since it’s kind of a daily and everyone considers it to be one. Doing that would make tomorrow’s visible as well.

Thoughts?

Fractal dailies for tomorrow?

in API Development

Posted by: Drant.5902

Drant.5902

Merging fractals into the regular daily endpoint would save having to fetch both. And it makes sense with them being dailies.

Will you be keeping it as an array of achievement IDs? Right now I have to assume that index 0 and 1 are reserved for the two daily Recommended Fractal Scales, and the rest in the array as

Tier1IslandA(i=2), Tier2IslandA(i=3), Tier3IslandA(i=4), Tier4IslandA(i=5)

Tier1IslandB(i=6), Tier2IslandB(i=7), Tier3IslandB(i=8), Tier4IslandB(i=9)

Tier1IslandC(i=10), Tier2IslandC(i=11), Tier3IslandC(i=12), Tier4IslandC(i=13)

Would be nice if they were properly categorized instead of assuming their array index. But if you keep it as an array for smaller size then that’s fine as long as the order is kept.

Fractal dailies for tomorrow?

in API Development

Posted by: Lawton Campbell

Previous

Lawton Campbell

Web Programmer

Next

Probably gonna keep them as an array. Their current organization isn’t formalized — it’s just how they’re all set up. I could hardcode the indexes but there’s not a non-manual way to tell that it hasn’t broken. Though there would be an advantage to having it hardcoded once in the API rather than in all the applications.

Any suggestions for how to specify the groupings in the response? Like, .category={"Scales", “Tier1”, “Tier2”, …etc}?

Fractal dailies for tomorrow?

in API Development

Posted by: Drant.5902

Drant.5902

Could be like this:


"fractal": {
    "scales": [2327, 2244], // Daily Recommended Fractal Scale
    "islands": [ // Islands (outer) and their tiers (inner)
        [2896,2907,2897,2941],
        [2916,2949,2918,2952],
        [2978,2899,2962,2932]
    ]
}

Fractal dailies for tomorrow?

in API Development

Posted by: Aether.7095

Aether.7095

I’d very much welcome the inclusion into /v2/achievements/daily. Right now I’m doing separate calls to fetch all dailies (for dungeons and fractals), one call means everything goes faster. And if you then add tomorrows fractal dailies too, I’m completely happy.

As for grouping, Drants suggestion looks good, even though for my purpose I just look at the highest tier of each “island” (previously looked them up by ID and simply make a comparison), but of course if you can split and group them and maybe even sort them by fractal level range (instead of randomly grouping them), then it would be even easier to extract the information for other purposes too.

Guild Wars since 2005.
Member of Silver Sunshine.

Fractal dailies for tomorrow?

in API Development

Posted by: Lawton Campbell

Previous

Lawton Campbell

Web Programmer

Ideally it’ll work with the current output format so that consumers using `Object.keys(json).forEach((key) => parseSection(json[key]))` don’t break.

I’ll go ahead and draft an initial PR; we can add more fields later.

(edited by Lawton Campbell.8517)

Fractal dailies for tomorrow?

in API Development

Posted by: Aidan Savage.2078

Aidan Savage.2078

Could be like this:


"fractal": {
    "scales": [2327, 2244], // Daily Recommended Fractal Scale
    "islands": [ // Islands (outer) and their tiers (inner)
        [2896,2907,2897,2941],
        [2916,2949,2918,2952],
        [2978,2899,2962,2932]
    ]
}

Would it be more readable if it was keyed by tier?


"fractal": {
    "scales": [2327, 2244], // Daily Recommended Fractal Scale
    "Tier 4": [2896,2907,2897],
    "Tier 3": [2916,2949,2918],
    "Tier 2": [2978,2899,2962],
    "Tier 1": [2941,2952,2932]
                  }

This would allow apps to grab a specific tier of the fractal dailies alone instead of having to pull everything, and then sort out a given tier.

edit: based on user preferences and stuff.

Fractal dailies for tomorrow?

in API Development

Posted by: Power.2957

Power.2957

You don’t really need an API for this…

Fractal dailies are on a 2 week rotation (at least the tier 1s-4s):

Week 1
Sunday: Swampland, Aetherblade, Mai Trin
Monday: Urban Battleground, Underground Facility, Snowblind
Tuesday: Cliffside, Molten Furnace, Mai Trin
Wednesday: Urban Battleground, Solid Ocean, Aetherblade
Thursday: Swampland, Cliffside, Volcanic
Friday: Uncategorized, Thaumanova Reactor, Molten Boss
Saturday: Aquatic Ruins, Solid Ocean, Molten Furnace

Week 2
Sunday: Urban Battleground, Snowblind, Mai Trin
Monday: Underground Facility, Cliffside, Aetherblade
Tuesday: Uncategorized, Snowblind, Volcanic
Wednesday: Aquatic Ruins, Molten Furnace, Molten Boss
Thursday: Solid Ocean, Thaumanova Reactor, Volcanic
Friday: Aquatic Ruins, Swampland, Uncategorized
Saturday: Underground Facility, Thaumanova Reactor, Molten Boss

“Power is like the illuminati of Guild Wars.” -Loshon

Fractal dailies for tomorrow?

in API Development

Posted by: That ol noob.7083

That ol noob.7083

@Power
using an API call helps if things ever change with that rotation. For example, we will supposedly be having a few new fractals soon. Burn me if that doesn’t alter the daily rotation somewhat.

Want a guild in which you actually have a vote?
Contact me and see if you are eligible for Council of Dusk [Dusk]