Showing Posts For Lycan.8327:

how to include Images?

in API Development

Posted by: Lycan.8327

Lycan.8327

Thanks very much Lawton, that’s very helpful indeed!

how to include Images?

in API Development

Posted by: Lycan.8327

Lycan.8327

What images in particular are you looking to retrieve? Most v2 endpoints that have icons/images have the fully qualified URL. For the v1 endpoints that return icon_file_id and icon_file_signature, the URL can be constructed via “https://render.guildwars2.com/file/$icon_file_signature/$icon_file_id.png”.

My apologies fot a tardy reply! Is there a tutorial that I could look at to implement this? I would love to see some images on my project! With regards to the types of images, I believe it is those that you have correctly identified, namely guild emblems, skill, inventory and bank icons etc. which have predefined endpoints given already.

I was wondering though, how this extends to the maps? I can see the Map output in JSON, so does this get converted to images? I’m very much a novice when it comes to these things and am learning as I go along so any resources for this would be fantastic!

While it is wishful thinking at the moment regarding the character model implementation at this stage, I am still very happy with the level of support the API gives.

many thanks in advance!

how to include Images?

in API Development

Posted by: Lycan.8327

Lycan.8327

Hi guys, I’m not sure if I am missing something but since starting on API development in a nodeJs app recently, I’ve not been able to manage getting images to work. I would love it if someone could please point me to resources that show/explain how images are retrieved and how to display them?

from what I can gather, there’s a server which i should be connecting to? I’m still learning Js and using the API.

also is there currently (or future plans) to be able to display our character image in some form on the site?

thanks a lot! I apologise if this has been asked already, I just can’t seem to understand it!

Can anyone help me use dyanarose's gw2api?

in API Development

Posted by: Lycan.8327

Lycan.8327

So I’m playing around with the API and learning JavaScript, and so far I like how Dyanarose’s API looks on https://github.com/dyanarose/gw2Api.js/tree/master

Since I’m learning, I appreciate it’s probably super obvious, but I’m getting confused on how to use it and get it to fetch the data from the game?

There’s a playground on the github site, i,e. http://dyanarose.github.io/gw2Api.js/ which lets you input values for the endpoints and then see a JSON output at the url destination, but for the life of me I can’t figure out how this is implemented in JS :p

any help would be awesome!

thanks!

(edited by Lycan.8327)