Questions tagged [riot-games-api]

A JSON API for retrieving game data for the popular computer game League of Legends.

A API for retrieving game data for the popular computer game League of Legends.

For more information, see the official homepage.

112 questions
0
votes
1 answer

Why am I not able to catch a Discord.js error in a command handler?

So I'm new to Javascript and trying to making a discord bot. Here is a very small portion that illustrates my problem: module.exports = { name: "match", category: "LOL", description: "Give Summoner's Data to User", run: async…
0
votes
1 answer

Riot Games API: Requests return same identifiers for same player name but different region

I have these two URLs: https://euw1.api.riotgames.com/lol/summoner/v4/summoners/by-name/okusen https://eun1.api.riotgames.com/lol/summoner/v4/summoners/by-name/okusen They just have the same player name and they are two different players from two…
David
  • 81
  • 2
  • 13
0
votes
2 answers

React Axios - JSON Get response isn't displaying from render() - Riot API

I starting learning React a couple days ago and Axios today. I've spent the last 4+ hours watching/reading tutorials and I just can't figure this out. I'm trying to create a simple stats website for League of Legends using Riot's API. Below you can…
Garret
  • 11
  • 1
  • 3
0
votes
0 answers

how to show information using an API with itemclicked event

I show a list of champions in the game (league of legends), and when I click on one, it shows more information about that champion in other textboxes. I've tried to make it work, but I failed, how can I make this work? API connection public static…
Tendeza
  • 5
  • 2
0
votes
1 answer

Laravel 6 - Modify the `validator` method of the `RegisterController`

I'm a beginner in programming, so please excuse my misunderstanding of validation in Laravel. I'm trying to create a website for gamers of a specific game, where users can register. When they submit the form, I have to verify whether their account…
Umut Savas
  • 113
  • 1
  • 14
0
votes
1 answer

How to update Riot Api after last update

I have been using my Riot Api to check current division of given summoner, but probably after an update it stopped working, here is my code:
edo
  • 41
  • 6
0
votes
1 answer

Riot Api - How can I bring the data of user in other regions?

I am trying to get user data from other regions using Riot Api I am able to get a data from North America region but not able to bring user data from other regions such as Brazil. I have found about regional endpoints but how I can use this to…
GoonGamja
  • 1,936
  • 5
  • 20
  • 46
0
votes
1 answer

ionic 3 no 'access-control-allow-origin' after I updated my ionic cli

I am using ionic lastest version. but my project is ionic 3. I am usin a api it's giving me a some game data . so recently works perfectly my code. but when ionic updated console giving me this error for my data apis = no…
0
votes
1 answer

Authenticating Users From a Website/App in Android

I am working on an app that players of League of Legends can create profiles of themselves; but I need to authenticate them to prevent creating fake accounts of other players. League has it's own messaging app for mobile, so can I authenticate users…
Özhan Efe Meral
  • 128
  • 1
  • 10
0
votes
1 answer

JavaScript(node.js) storing(var) information from .then

I'm using a a js lib called teemojs to get information from riot API using node.js and want to store what i get in a var to call back to later, this code api.get('euw1', 'summoner.getBySummonerName', playerName) .then(data =>…
Luke Noot
  • 1
  • 1
0
votes
0 answers

Request failed; Required params

i'm running nodejs application on localhost, everything went smooth until i encountered this error Error: getLeaguePositions request FAILED; required params `id/summonerId/playerId` (int), `accountId/accId` (int), or `name` (string) not passed…
0
votes
1 answer

What is wrong with how I create this variable for summoner from the Riot API?

enter code hereThe error this code returns is "Trying to get property of non-object" or "Message: Undefined property: stdClass::$name". The variable $summoner is what does not work. Assume the variables sID, $lcaseregion and $APIkey (etc.) are…
Bubba
  • 21
  • 5
0
votes
0 answers

Xamarind.Android: Getting List from API and displaying it in a ListView (Riot Games Api)

I'm working on a project using the Riot Games API, and have run into an issue. I'm able to receive and deserialize info using the "summoner" api call, but I cannot replicate my success with the "game" api call. Here is how I am attempting to receive…
0
votes
1 answer

Need help decoding JSON from Riot API with PHP

As a part of an assignment I am trying to pull some statistics from the Riot API (JSON data for League of Legends). So far I have managed to find summoner id (user id) based on summoner name, and I have filtered out the id's of said summoner's…
Tom
  • 1,747
  • 5
  • 23
  • 39
0
votes
1 answer

How to map Riot Api request to an Object with Spring RestTemplate

I am using Spring's RestTemplate to convert a JSON response from the RiotAPI into my BasicSummoner object. I believe the issue is with converting the JSON response into my object. After calling getForObject() all of the object's fields are…