(edited by Chik En.8973)
[API Suggestion] Few generic API Suggestions
Regarding #2: Javascript is a typeless language and since JSON is a subset of Javascript it’s typeless aswell. I don’t think there’s much need for extra information about the datatypes since most of them are obvious. The wiki already covers this information if you really need it (e.g. http://wiki.guildwars2.com/wiki/API/item_details).
Regarding #2: Javascript is a typeless language and since JSON is a subset of Javascript it’s typeless aswell. I don’t think there’s much need for extra information about the datatypes since most of them are obvious. The wiki already covers this information if you really need it.
If you intend to do data persistence to a database such as MySQL or any other, knowing data lengths without guessing and hoping to avoid truncation is a needed factor. Not everything will be created in javascript. A efficient programmer does not just put String(1000) just in case, if you only need a varchar of 3, it would be nice to know.
And the wiki only covers some basic info as I said.
My objective for these two suggestions is to persist the data and hit the api with less load, hopefully avoiding unneeded pulls, example.
1) If the build number has not changed, there is no need to update the map locations.
2) only pulling data that has changed since XXXXX
The Schema built in is typical of other API’s such a webservice
Example of a webservice http://wsf.cdyne.com/WeatherWS/Weather.asmx
Example of a webservice exposing its Schema through a parameter http://wsf.cdyne.com/WeatherWS/Weather.asmx?wsdl
Just saying this would be nice for those who might want to persist the data and lighten the load to the API server
I can still see no reason to include this info in an API response – like i said, most of it is obvious and if not, it is (or should be) covered in the wiki since it’s the official API documentation. Feel free to apply as API editor to help and add info which you think is missing.
Btw. in the MySQL example you mentioned, of course you wouldn’t create a varchar(x) field if you don’t exactly know the data length – you’d just use a tinytext/text/mediumtext/longtext http://dev.mysql.com/doc/refman/5.1/en/storage-requirements.html
(also: keep in mind the overhead a response would have, especially XML)
(edited by smiley.1438)
Websockets for the event would be good so we can retrieve only event status changes
We really need an XML version, please implement it. I need a easy way to elaborate data on excel. It will open a world of statistics.
I play only WvW and i love to work with data, statistics and predictions. I think WvW need an easy way to elaborate all the data between this type of game. With a simple tutorial much more people will use it. Best regards.
(edited by Mechamilk.7809)
I still wonder why (a very few) people still demand XML as data format. Ok, i can understand that it might be easier to parse in certain languages but i can’t see an advantage over JSON in the case of the GW2 API (and many more…). Don’t get me wrong, but personally i’d kill XML with fire – along with excel. Any decent language has possibilities to parse JSON easily (either native or as library) and also i heard that SQL databases are pretty handy when it comes to statistics. So when you’re working with MS-Office, you should at least favor Access over Excel.
Also for the notes – just for example:
https://twitter.com/thomasfuchs/status/379675885647192065 / https://gist.github.com/madrobby/6584720
Programmer
Offering alternative data representations (such as XML) is planned, but not anytime soon. In the meantime I’d recommend using a simple JSON to XML translation library, of which there are several. There are even web-based translators you can play around with.
Apologies if this is not the best place to post this but here goes anyhoo.
I was wondering, is there a way currently to retrieve player Achievement Point scores from the leaderboard? I was just thinking it’d be cool to be able to retrieve player’s scores. I had been playing around trying to make a little Java GUI that would take in data of some kind about, for example, my score and generate a graph but I had problems trying to get stuff for drawing functions working and I’ve been a bit busy with other things so haven’t dedicated more time to resolving the issue yet…
But either way getting back on topic, having a way to retrieve achievement point totals would be nice IMO.
NO XML! Srsly.
To repeat what smiley said, I just don’t get it….I just…why?! You could write a JSON→CSV parser in a weekend if absolutely need some format to import into Excel.
Also, doesn’t this do what you need? http://stackoverflow.com/a/7300926/623771
In closing: JSON.
Also:
Not to speak of the overhead XML has compared to JSON.
The near fact that most replies and posts on the forum site are all over four months to a year is a disappointing site to see. Being an long time Guild wars 2 player and also one of Dragonbrand’s Public Relation Administrator, I see the struggle of replenishing numbers with in the game, the effects or long term players who get bored, and leave, and the over all satisfaction/dissatisfaction of changes to the game so far. The upgrades, changes, and updates have all been correct actions in the end. The Living-story content in some opinion is to easy or boring, but the pace is picking up, which is inspiring some to return to the game. But in my honest opinion the one and nearly the only thing that ANET does in correctly is the advertising. Advertise the game, truly invest in getting the game out there. the game has been one of the biggest marketed MMOs in the West and has a huge Eastern population as well, but the game needs to keep advertising. Not on Facebook and other social media, but an honest to god commercial. WoW has the luxury of being able to create a commercial yearly, I know with funding being different since the game isn’t subscription, but if you truthfully want more active users then you must advertise your changes and game more sufficiently. Also make it worth new players joining the lower Tier Servers. For example “All new players will receive Karma Boosts, Experience Boosts, a Black Lion Key, 5 gold to make their home on Anvil Rock, or SoR” We need to push for players to pick up the game in the lower tier Servers so they wont instantly want to transfer due to the fact the population may be lacking. If players start their they will tend to stay if they see other players of he some par. Leading to cultivation. I hope some one in ANET reads this and considers this. -Sir Hayden