These are chat archives for arenanet/api-cdi

11th
Jan 2018
Archomeda
@Archomeda
Jan 11 2018 04:56
i guess it's busy at anet this week with all the hotfixes :/
Werdes
@werdes
Jan 11 2018 10:38
Would it be wise to get some representative of every team associated with any kind of api into this gitter ? So you don‘t have to find and mail devs ingame. Like the way it happened with Jason.
smiley
@codemasher
Jan 11 2018 10:50
that'd be the greatest thing since since the announcement of 3rd party apps back in... 2011?
wait no, it wasn't 3rd party back then - just announced as a web client
Archomeda
@Archomeda
Jan 11 2018 13:16
@werdes agreed, and have them learn github as well so they can tag issues, and close them when needed
(or https://discord.gg/zqeHCEg, which has no messages still haha :joy:)
BoyC
@BoyC
Jan 11 2018 15:12
wouldn't hold my breath :P
smiley
@codemasher
Jan 11 2018 17:38
3rd site down in 3 days in a row - is that an epidemic?
image.png
derRAV3N
@derRAV3N
Jan 11 2018 17:46

anyway, https://gw2mail.com/ is ready for when you enable mails :P

that animation :D

@werdes doubt that's gonna happen
you'd only realistically get gameplay programmers since design doesn't typically do any programming work
derRAV3N
@derRAV3N
Jan 11 2018 18:11
So I'm currently looking at how to store characters into a db while also syncing it from the api, is there any way to get an unique id for characters or how do you do that? I thought about just storing the creation-timestamp+id of the account(from my internal db) as unique id of characters, thats sounds good for me now, i don't think anyone will have/will be able to create two characters at the same time?
account id + char creation date is probably the best unique tuple for a characters table
the API can't expose char ids
Archomeda
@Archomeda
Jan 11 2018 18:13
there's still #32 apparently :/
yeah
Archomeda
@Archomeda
Jan 11 2018 18:15
i think you discussed something about a one-way hash... but... yeah
derRAV3N
@derRAV3N
Jan 11 2018 18:43
I just saw, it seems like seconds of creation are always "00", so creating 2 characters within one minute could totally be possible. In combination with race
darthmaim
@darthmaim
Jan 11 2018 18:45
but you are not going to create a new character, get it renamed, and create a new char with the same old name within one minute
derRAV3N
@derRAV3N
Jan 11 2018 18:45
, profession and gender is okay for that when someone isn't forcing that, but when someone tries to force an issue, he can totally create a character in the same minute with same gender, profession and race..
Hmm, I guess I'll just use timestamp and accountId for now and add a check for duplicates
darthmaim
@darthmaim
Jan 11 2018 18:47
name+timestamp+account should be good
no one would use a namechanging contract <1min after creating a new char
derRAV3N
@derRAV3N
Jan 11 2018 18:49
Oh, that should be good, great idea!
But still.. it would be totally possible to do that :/
But wait, the API is synched every 10 minutes, right?
more-or-less, it's typically more frequent than that
10 minutes is the upper bound (5 min force sync from map instance to DB, 5 min cache between DB and API backend)
Quaggan BooOOoot
@QuagganBooOOoot
Jan 11 2018 21:33
New discussion in API Development:

Question regarding authentication without OAuth2
by Ghirkin.4689 in API Development

Since oauth appears to no longer be available the process of signing into an app isn't hugely intuitive for some people.

To work around this, is it allowable to authenticate users/generate an api key for your app by interacting with https://account.arena.net/login.json / https://account.arena.net/applications/create.json ? I'm assuming not - but it would make the login flow for new users a lot more simple :)

smiley
@codemasher
Jan 11 2018 21:35
well, just bring back oauth... :D
Archomeda
@Archomeda
Jan 11 2018 22:21
urgh, that suggestion on the forums implies people having to fill in their email/password in a third party app... yeah no
Eearslya Sleiarion
@Eearslya
Jan 11 2018 23:52
"hey, since we're not gonna have oauth, why don't we just go back to the reason oauth was invented"