Looking to learn API! Suggestions?

Looking to learn API! Suggestions?

in API Development

Posted by: Exikar.7581

Exikar.7581

Hello!

I’ve been looking for a guide that will help teach me the fundamentals in learning how to utilize the API system ArenaNet has presented. I don’t have much coding experience beyond very, very light HTML.

While the endgame is to create some kind of web-based or stand-alone application, the initial goal is simply to find the tools to get started.

Do you have any recommendations (guides, tools, tips, etc.) on how to get started in learning how to code with API for software/web-based applications, to someone who is new to coding?

Questions that I have, without any prior experience:

  1. What kind of program do I need to use to “create an application”?
  2. What coding/programming languages can I use, or which languages are recommended?
  3. Any guides on where to begin learning this language?
  4. How does one implement these applications into a website and/or stand-alone program?

Any help would be much appreciated!

Looking to learn API! Suggestions?

in API Development

Posted by: Archomeda.6472

Archomeda.6472

Not to shatter your dream, but there isn’t something like “a program” or “a particular programming language” you have to use in order to create an application to use the GW2 API.

The GW2 API is a RESTful API. You can use whatever language you want. However, GW2’s API relies on JSON encoded strings. This is heavily favored towards Javascript and web development. Still, JSON has become pretty popular over time, and you can use JSON in almost every programming language you can imagine (provided that there are libraries for it). This means C++, C#, VB.NET, Java, Javascript, PHP, Ruby, Python, Node.js, Go, and the list goes on and on.

This means that I can’t give you a recommendation for a programming language you’ll want to use. You have to find a language that you like yourself.

Regarding implementing an API wrapper, it really depends on the language. But note that the GW2 API is a RESTful API (at least version 2 is). Some languages already provide a wrapper for something like that, but sometimes you have to implement it yourself.
Regarding reading the API, there’s the wiki for that.

My advice is, once you’ve settled what kind of application you want to create, look for programming languages that support you with that. Some examples: PHP/Javascript for web applications, C#/Java for standalone applications. There are more options, but I think that these languages are used the most currently, which means that you’re guaranteed to find tutorials etc. on the internet. Then after you’ve found your combination you can worry about interfacing with the API.

Also, HTML is not a programming language . It’s like saying that the formatting options on the forums is a programming language.

Good luck!

Looking to learn API! Suggestions?

in API Development

Posted by: Chokapik.3741

Chokapik.3741

Hello!

I think the best place to start would be Javascript. You don’t need any programs to create applications, even Windows’s Notepad should do (I don’t recommend it though).

I made a quick JSFiddle (it’s a website that allows you create HTML and Javascript code, quite handy for showing examples to people and stuff).
I put a lot of comments on it, hopefully it will be understandable enough!
http://jsfiddle.net/3gs5wcw7/1

Basically, it shows how to do a simple request to the v2/build API endpoint, but feel free to have fun with it, change the code, try out other things, …

I would recommend this tutorial for getting started with Javascript.

Have fun!

Escape from Rata Sum: http://orikaru.net/ratascape
Guild Emblem Editor: http://nailek.net/gw2/emblemeditor

(edited by Chokapik.3741)

Looking to learn API! Suggestions?

in API Development

Posted by: Misa.6908

Misa.6908

I would suggest using visual studio 2015 Community since it’s free, you can do C#, html and javascript with this https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx