These are chat archives for arenanet/api-cdi

23rd
Jan 2016
windwarrior
@windwarrior
Jan 23 2016 00:00
well, what apps do normal guild members want to use that use these api's
we are talking about members (also presence status?), the contents of the bank, the contents of the treasury
and the upgrades
and the logs right
David Reeß
@queicherius
Jan 23 2016 00:01
The people that do the upgrades are quite frequently not the guild leaders, especially in bigger guilds. And for members / stash there is often officers etc.
windwarrior
@windwarrior
Jan 23 2016 00:01
yeah
maybe restrict members to people who can invite?
although that is a bit arbitrarily
leader is the person, or persons with all permissions right
or is it always singleton?
it's the topmost role in the UI
IIRC it's a special hidden permission that grants all other permissions
I should probably expose the 'leader' role as a flag in /v2/guild/:id/ranks -- it's kind of weird in that it's not a normal permission.
windwarrior
@windwarrior
Jan 23 2016 00:05
so, if the topmost class is called Head at my guild, they automatically also get leader?
Yes.
IIRC you can't move the topmost position down in the UI (nor can you move a permission above it)
windwarrior
@windwarrior
Jan 23 2016 00:06
dont know, never had perms to change that in my way-too-big guild
but the longer I think about it, the more I think restricting it only to leaders is sensible as long as there is no perm ingame
or; the most sensible thing to do
I'll start talking to people next week about getting that "API access" permission in-game. Been putting it off for awhile :/
David Reeß
@queicherius
Jan 23 2016 00:08
That would be the best solution, but the one with the most work attached :smile:
windwarrior
@windwarrior
Jan 23 2016 00:09
oh sure, I was just thinking if there was a sensible heuristic for "in-between". Like, if a user has permission x, he can also use the api key to do that x. But I think that is more troublesome then it is useful
yeah, overloading permissions would be undesirable, I think
windwarrior
@windwarrior
Jan 23 2016 00:11
and about those perms, will those be all-or-nothing, or do you want specific perms for specific calls?
My current plan is for "API Access" to be all-or-nothing
IMO there's too much cognitive overhead for doing per-endpoint permissions
windwarrior
@windwarrior
Jan 23 2016 00:15
right, makes sense. Also, I cannot think why you want this to be finegrained anyway
Nabrok
@Nabrok
Jan 23 2016 18:04
wvw api down? or wvw itself down?
Eearslya Sleiarion
@Eearslya
Jan 23 2016 18:05
How can a world not be in a match, anyway?
Nabrok
@Nabrok
Jan 23 2016 18:05
At reset I suppose?
Eearslya Sleiarion
@Eearslya
Jan 23 2016 18:05
Huh. I guess I expected reset to be more of an instantaneous thing. (At least API-wise.)
Nabrok
@Nabrok
Jan 23 2016 18:08
It was working 10 minutes ago ... I guess this is the world telling me to take a break.
Oh now it's working again
Eearslya Sleiarion
@Eearslya
Jan 23 2016 18:09
I just find it odd that it's only when using ?world that it breaks
Nabrok
@Nabrok
Jan 23 2016 18:09
The world wants me to starve
darthmaim
@darthmaim
Jan 23 2016 18:13
reset always takes like 10-15 minutes
Eearslya Sleiarion
@Eearslya
Jan 23 2016 18:13
In-game, yes. I never actually looked at the API once the maps had closed, I assumed the API data swapped instantly with no downtime once they were back up.
darthmaim
@darthmaim
Jan 23 2016 18:14
nope, sadly not :(
Nabrok
@Nabrok
Jan 23 2016 18:14
The API is usually updated before you load into the map, but it doesn't reset until then.
smiley
@codemasher
Jan 23 2016 19:00
umm, reset is on fridays, eh?
Eearslya Sleiarion
@Eearslya
Jan 23 2016 19:00
Nope
smiley
@codemasher
Jan 23 2016 19:01
has this been changed?
yes/no/abort?
Nabrok
@Nabrok
Jan 23 2016 19:06
Reset is saturdays now
Eearslya Sleiarion
@Eearslya
Jan 23 2016 19:08
Yeah, something about Friday resets being good for bugfixing and Saturdays being more convenient..I don't remember
smiley
@codemasher
Jan 23 2016 19:08
ah
Nabrok
@Nabrok
Jan 23 2016 19:09
Yeah, they didn't want to roll out any bug-fixes on friday nights because it interferes with wvw
Nierrrrrrr
@Nierrrrrrr
Jan 23 2016 19:14
Can we get structure information of the upgrades from guild API? Like "Guild Vault: Stash" is from structure "notary".
Eearslya Sleiarion
@Eearslya
Jan 23 2016 19:30
I can't find it in the backlog right now, but this was discussed previously. Basically, the game doesn't really keep track of what NPC gives what upgrades, it's all UI-based and not easily serialized. The best solution right now is just to hardcode your own lookup table.
Nierrrrrrr
@Nierrrrrrr
Jan 23 2016 19:32
I see, thanks. :)
David Reeß
@queicherius
Jan 23 2016 19:41
@Nierrrrrrr if you don't wanna do it by hand: https://gist.github.com/queicherius/eb41a5ad53923884234c
Nierrrrrrr
@Nierrrrrrr
Jan 23 2016 19:43
@queicherius wow thanks