What is the best-practice to use the API in my web-app?

Avatar image for itaied246
itaied246

4

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Hello,

We are writing a social free of charge web application for trading and exchanging video games.

We allow the users to upload their own images of their games, but we also want to upload images for users who don't want to mess around with taking pictures of their games.

How should we implement this API on our web app?

As I understand it, out requests should come from the server and not from the client, since the API key is secret.

Moreover, since the number of requests is limited, should we store some images on our server (something like a cache layer)?

And in general, I would like to hear your thoughts about the best practices on how to use this API in a web application.

Thanks.

Avatar image for chaser324
chaser324

9415

Forum Posts

14945

Wiki Points

0

Followers

Reviews: 1

User Lists: 15

#2 chaser324  Moderator

@itaied246: You should definitely cache data on your own server to reduce API requests. Just make sure you properly credit Giant Bomb as the source of your data.