Showing Posts For Tao Ythaq.6582:

Character build endpoint update time

in API Development

Posted by: Tao Ythaq.6582

Tao Ythaq.6582

> As I said, last time I tried, gw2e took > 10 minutes to update a single item change.

Make a script to simply check yourself the right url to see the frequency of change : example of API url https://api.guildwars2.com/v2/characters/{CHAR_NAME}?access_token={API_KEY}

gw2efficiency has its internal schedule to get informations.

Character build endpoint update time

in API Development

Posted by: Tao Ythaq.6582

Tao Ythaq.6582

> Sorry, that makes this not really viable for sharing builds in a timely manner.

If you use the internal gw2tool link, it is reliable (ie [http://gw2tool.net/fr/kqugPog2xf/gw2skills-pve/Tao Belix] – edit sry I don’t know how to make a link with a space on this forum). It will automaticaly redirect to the gw2skills.net website

> “As a player with an input api key I want to immediately see players in my party/squad to check character data”

Absolutely not possible at the moment. And I guess it won’t be possible for a long time.

> “As a user I want to upload my API key and make my character data public”

Doable through gw2tool.net. Arenanet does not directly provide this sort of tool.
Other fan sites can do that too (more or less usefull/secure) : gw2efficiency, gw2armory.

> “As a commander I want to search a person’s character name, and view their build information”

It could not be done without the person authorization, gw2tool.net does not allow that. gw2tool.net is only a “personal” gw2 api browser, not a social / game database.
gw2efficiency and gw2armory allow these kind of features (more or less).
Personal opinion : gw2armory is not enough secure. I got some informations about people I should not be able to see. gw2tool.net is the more secure of these tool.

Character build endpoint update time

in API Development

Posted by: Tao Ythaq.6582

Tao Ythaq.6582

Look at http://gw2tool.net/ . I find it more suitable for stuff and builds.
The website is opensource and you can check yourself with a script the frequency (github https://github.com/arnapou/gw2apiclient).

It am almost 100% sure that the api is more frequent than 10 min.

On gw2tool.net, you can directly look at your build on gw2skills.net from special redirect links (the website is building the gw2skills.net link on the fly from your stuff).

Exemple of charcater page : http://gw2tool.net/fr/kqugPog2xf/character/Tao%20Belix

HEADS UP: rate limiting is coming

in API Development

Posted by: Tao Ythaq.6582

Tao Ythaq.6582

600 requests/minute is nice, but I want to know if authenticated endpoints (/v2/account* for example) count in this limit ?

I guess yes, but I need to know, because I made a public tool and if a lot of people use it, I will work on a way to spread authenticated requests to avoid peaks (I previously already added a random margin into my cache retention to spread global item requests).

They do count towards the limit. It’s altogether possible that 600 reqs/minute is too low a number; if your application can’t fit within that, let me know what numbers would work better. The goal here is to break as few things as possible while being able to keep the APIs from crashing.

At the moment there are not enough people using gw2tool.net everyday to reach the limit. But I will implement another algorthm to spread requests to avoid to reach the limit, don’t worry, I don’t need more than 600/min.

HEADS UP: rate limiting is coming

in API Development

Posted by: Tao Ythaq.6582

Tao Ythaq.6582

This is a very good idea : it will force people to have good practises.
I am the gw2tool.net developper and I hate wasting computer resources. I made a huge work to build my own caching and so on …
I was horrified when I saw a few years ago the wasting of requests everywhere in the community.

600 requests/minute is nice, but I want to know if authenticated endpoints (/v2/account* for example) count in this limit ?

I guess yes, but I need to know, because I made a public tool and if a lot of people use it, I will work on a way to spread authenticated requests to avoid peaks (I previously already added a random margin into my cache retention to spread global item requests).

Which Timezone is correct for the Timestamps?

in API Development

Posted by: Tao Ythaq.6582

Tao Ythaq.6582

Yes, this is an issue known for month.

Substract 8 hours to have the correct date.

I hard coded that in my GW2 Api client :

https://github.com/arnapou/gw2apiclient/blob/master/src/Arnapou/GW2Api/Model/PvpGame.php

    /**
     * 
     * @return string
     */
    public function getDateStarted() {
        return gmdate('Y-m-d H:i:s', strtotime($this->data['started']) - 8 * 3600);
    }
    /**
     * 
     * @return string
     */
    public function getDateEnded() {
        return gmdate('Y-m-d H:i:s', strtotime($this->data['ended']) - 8 * 3600);
    }

Any projects out there open to contributors?

in API Development

Posted by: Tao Ythaq.6582

Tao Ythaq.6582

I developped an opensource website http://gw2tool.net/

Source code on GitHub :

I don’t know if you have frontend or backend skills, but any help would be appreciated to enhance this tool.