-3

Novice html developer here, I was wondering how I could get my Lol Rank onto my site from Riot's API.

Is it possible to do it without Javascript ?

Daitan
  • 29
  • 2
  • 4

2 Answers2

0

You'd need a proxy, server or "function", because you're not allowed to disclose your API key.

You could look at how to generate SVG badges, using an AWS Lambda for example. Then you'll just embed your rank as an image, and no JavaScript is required on the web page.

Mikael Dúi Bolinder
  • 2,080
  • 2
  • 19
  • 44
-1

No, it's not. You need the JS to do this.

If you can, use React and axios to get the response of the api. More about axios here: https://axios-http.com/ptbr/docs/intro

ouflak
  • 2,458
  • 10
  • 44
  • 49