These are chat archives for arenanet/api-cdi

10th
Mar 2016
Robert Logiewa
@Ruhrpottpatriot
Mar 10 2016 00:18
When can we expect a simple v1/guild details.json port to v2? and with simple I mean simple
Or do you guys want to make a more sophisticated version of it?
I uhh have one that works mostly but I'm not entirely happy with it
I should probably make a pull request that details what I've got -- I'll make a note to do that tomorrow
smiley
@codemasher
Mar 10 2016 00:34
yup, most useful, one of the endpoints i miss :D
yeah I had to recommend using the /v1/guild_details.json the other day for resolving guild names to ids :/
smiley
@codemasher
Mar 10 2016 00:36
it all comes back :D
Robert Logiewa
@Ruhrpottpatriot
Mar 10 2016 12:31
I'm happy
Robert Logiewa
@Ruhrpottpatriot
Mar 10 2016 13:23
@Iye Did a PR( arenanet/api-cdi#257) for my question. It's basically a 1:1 representation of the old v1 in v2 with some minor additions. I also added a JSON-Schema for easy validation.
Nabrok
@Nabrok
Mar 10 2016 14:19
@Ruhrpottpatriot You do know that /v1/guild_details could take the guild name instead of the id?
Also, you can determine who can invite with /v2/guild/:id/members and /v2/guild/:id/ranks
Robert Logiewa
@Ruhrpottpatriot
Mar 10 2016 14:57

I left the name as an identifier out on purpose.
a) It can change and that would invalidate the request
b) Back in the day that was a suitable method, since there was no way to actually get the Id of the guild. Now you can discover all guilds via v2/guilds/

And I didn't know about those two sub endpoints since I havn't really looked at the v2/guildsendpoint in a while. Problem with those is, that it's authenticated and you'll need a suitable API key for that. My initial intention was to provide outside members with a person they can talk to for recruitment.

quick question: When do daily achivements reset?
darthmaim
@darthmaim
Mar 10 2016 14:58
0:00 UTC
Nabrok
@Nabrok
Mar 10 2016 14:58
Midnight UTC
Robert Logiewa
@Ruhrpottpatriot
Mar 10 2016 14:59
thanks
Nabrok
@Nabrok
Mar 10 2016 14:59
Which is currently 7:00 PM Eastern, but will be 8:00 PM next week.
Nabrok
@Nabrok
Mar 10 2016 15:00
Honestly, I'd continue to use /v1 over sorting through a list of every guild in the game.
smiley
@codemasher
Mar 10 2016 15:00
By using this site you accept the use of Cookies and HTML5 Local Storage to improve your experience. Find out more.
AHRG
<3
darthmaim
@darthmaim
Mar 10 2016 15:01
I would add an endpoint just like /v2/recipes/search, /v2/guild/search?name=ArenaNet
Robert Logiewa
@Ruhrpottpatriot
Mar 10 2016 15:08
Either adding an additional endpoint is an option. Or just do a request once and cache the results? I mean it's the same if you want a specific item from the api
10lk81.jpg
Archomeda
@Archomeda
Mar 10 2016 15:16
Hmm... small question, does someone know the exact colors used for text that represents the rarity in-game? Like fine, masterwork, etc.
smiley
@codemasher
Mar 10 2016 15:18
i'm almost sure the wikis use the correct colors (could be wrong however)
Archomeda
@Archomeda
Mar 10 2016 15:18
I'll have a look :)
Nabrok
@Nabrok
Mar 10 2016 15:18
I stole the colors off the wiki
Edgar Doiron
@Coffee4cr
Mar 10 2016 15:18
@Archomeda I just used what @queicherius uses on his site
Archomeda
@Archomeda
Mar 10 2016 15:19
Ah, thanks @codemasher
darthmaim
@darthmaim
Mar 10 2016 15:19
no, the wiki doesn't use the correct ones, because those are on white background, not on black like in game
Edgar Doiron
@Coffee4cr
Mar 10 2016 15:19
.Basic {
  border: solid 2px #000000;
}

.Fine {
  border: solid 2px #62A4DA;
}

.Masterwork {
  border: solid 2px #1a9306;
}

.Rare {
  border: solid 2px #FCD00B;
}

.Exotic {
  border: solid 2px #FFA405;
}

.Ascended {
  border: solid 2px #FB3E8D;
}

.Legendary {
  border: solid 2px #4C139D;
}
smiley
@codemasher
Mar 10 2016 15:19
yw
Edgar Doiron
@Coffee4cr
Mar 10 2016 15:19
oops how do you code block?
darthmaim
@darthmaim
Mar 10 2016 15:19
enter after ```
Archomeda
@Archomeda
Mar 10 2016 15:19
markdown: ```
smiley
@codemasher
Mar 10 2016 15:19
you missed a line break
Edgar Doiron
@Coffee4cr
Mar 10 2016 15:20
thanks
smiley
@codemasher
Mar 10 2016 15:20
:+1:
Archomeda
@Archomeda
Mar 10 2016 15:20
oh, you did enter those ``` :P
darthmaim
@darthmaim
Mar 10 2016 15:20
the wiki doesn't use the correct ones, because those are on white background, not on black/dark background like in game
smiley
@codemasher
Mar 10 2016 15:21
^^
darthmaim
@darthmaim
Mar 10 2016 15:21
at least the german wiki uses modified colors
Archomeda
@Archomeda
Mar 10 2016 15:21
I could figure that out yes :P @darthmaim
smiley
@codemasher
Mar 10 2016 15:21
so now, what's missing on the wikis? right!
Nabrok
@Nabrok
Mar 10 2016 15:21
I'm using ...
.rarity_Junk { color: #888888; }
.rarity_Fine { color: #62A4DA; }
.rarity_Masterwork { color: #1A9306; }
.rarity_Rare { color: #FCD00B; }
.rarity_Exotic { color: #FFA405; }
.rarity_Ascended { color: #FB3E8D; }
.rarity_Legendary { color: #4C139D; }
smiley
@codemasher
Mar 10 2016 15:21
and i won't do anything about it XD
Edgar Doiron
@Coffee4cr
Mar 10 2016 15:22
@Nabrok the only difference between me and you is the junk item
Nabrok
@Nabrok
Mar 10 2016 15:22
Yup
Edgar Doiron
@Coffee4cr
Mar 10 2016 15:23
black looked better on my website :P
smiley
@codemasher
Mar 10 2016 15:24

at least the german wiki uses modified colors

i won't comment on any desicion made by the german wikiadmindictators

darthmaim
@darthmaim
Mar 10 2016 15:25
meh, changing the colors to look better on light background isn't bad
smiley
@codemasher
Mar 10 2016 15:25
it's not for sure, but then again you know the usual nitpicking over there
so i wonder that this change even took place XD
Archomeda
@Archomeda
Mar 10 2016 15:30
Another question, is there a nice API way of getting the food buff icon? Like the one that shows up in a consumable tooltip?
And I don't mean the actual food icon, but the food buff icon
darthmaim
@darthmaim
Mar 10 2016 15:31
didn't @lye add this yesterday?
Archomeda
@Archomeda
Mar 10 2016 15:31
Uhh

Oh..

/v2/items: add support for buff icons (when backend support lands).

darthmaim
@darthmaim
Mar 10 2016 15:32
so there is your answer: soon™
Archomeda
@Archomeda
Mar 10 2016 15:32
@Iye, I'm going to assume this will be added in details -> icon?
Yeah, thanks, I overlooked it when I was reading that 30 minutes ago...
Nabrok
@Nabrok
Mar 10 2016 15:34
darthmaim
@darthmaim
Mar 10 2016 20:50
@lye: why does /v2/pvp require authentication but /v2/pvp/seasons does not?
Nabrok
@Nabrok
Mar 10 2016 20:51
seasons is just information on the season
standings has the user information
darthmaim
@darthmaim
Mar 10 2016 20:51
I know, still weird that the parent endpoint requires auth, but the child does not
Nabrok
@Nabrok
Mar 10 2016 20:51
It's all public data
Nothing account specific
darthmaim
@darthmaim
Mar 10 2016 20:51
I know
/v2/pvp also doesn't have any account specific info
it just lists the sub endpoints (games/stats)
/v2/pvp shouldn't be authenticated, but games/stats/standings/... should
Pat Cavit
@tivac
Mar 10 2016 20:55
Looking at the code it's probably a bug
file an issue please
darthmaim
@darthmaim
Mar 10 2016 20:55
will do
Pat Cavit
@tivac
Mar 10 2016 20:55
module.exports.index = troll(
    token.requireScopes([ "account", "pvp" ]),

    function(req) {
        return reply.json([
            "stats",
            "games"
        ]);
    }
);
since all it can ever do is reply json, I'm not sure why it should require auth at all
assuming copy/paste error
oh it's because at one point it did return user info
darthmaim
@darthmaim
Mar 10 2016 21:00
opened #259
that was fast :D
Pat Cavit
@tivac
Mar 10 2016 21:01
easy fix, especially after I walked backwards to see why it ever had that
darthmaim
@darthmaim
Mar 10 2016 21:02
ran into the issue when writing my wrapper, because my fluent interface required an api key for pvp ($api->pvp('API_KEY')->seasons()), which makes no sense, since seasons doesn't need the API_KEY
Nabrok
@Nabrok
Mar 10 2016 21:05
I'm wondering ... cache season data in perpetuity or clear it on new builds?
Existing seasons shouldn't really change at all.
Pat Cavit
@tivac
Mar 10 2016 21:07
afaik seasons are just in a config file right now
because they aren't really in content in a queryable way
and change basically almost never
@Nabrok they can technically change between builds; the only hardcoded bit are the start/end dates
but I doubt they'll change -- it would cause some interesting things to happen
Nabrok
@Nabrok
Mar 10 2016 21:20
Yeah, I'm thinking I might as well keep it. If something does change I can always wipe the cache manually.
Erk, /v2/guild/:id/teams isn't actually bulk-expanded
I should probably stop doing that
If anyone has a few spare minutes, looking for some opinions on arenanet/api-cdi#260 because I'm unhappy with that
idivait
@idivait
Mar 10 2016 23:23
Making a ./epeen slack command forthwith now that we have wvw rank stats. :D
heh
idivait
@idivait
Mar 10 2016 23:24
I prob shouldn't be as excited as I am about that lol.