Git Product home page Git Product logo

riot-api-league's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

riot-api-league's Issues

Async not working

Describe the bug
Hello.
I am using asynchronous ReactPHP in my application and would like to use your code to access to Riot API, but it seems it block I/O and is completely non-asynchronous despite the presence of methods.

To Reproduce

	$logger->info('before');
	
	$api
		->nextAsync(function($result) use($logger){
			$logger->info('success');
		}, function() use($logger){
			$logger->error('fail');
		})
		->getChampionRotations()
	;
	
	$logger->info('before commit');
	
	$api->commitAsync();
	
	$logger->info('after commit');

Expected behavior

[13.06 12:37:53][INFO] before
[13.06 12:37:53][INFO] before commit
[13.06 12:37:54][INFO] after commit
[13.06 12:37:54][INFO] success

Current behavior

[13.06 12:37:53][INFO] before
[13.06 12:37:53][INFO] before commit
[13.06 12:37:54][INFO] success
[13.06 12:37:54][INFO] after commit

Server:

  • PHP version: 7.4.14
  • react/react version: 1.1.0
  • dolejska-daniel/riot-api-league version: 1.0.1

Thanks.

Wiki pages returns to readme

Hello,

Thanks for your library, it'll allow me to drop my fork of an unmaintained LoL api client.

I wanted to gather more information on how to set the cache provider but all your links refer to the wiki and when being clicked on we're returning on the readme.

Sames goes if you click on Wiki section through github.

OCE Matches returning really old matches?

Hi, love the library, use it for many projects, currently doing a project for tracking match history.

However, I noticed that when using the matches API, it returns really old matches, like almost 300 days old, while every other region seems to function good.

Is this a known bug?

StaticItemDto

requiredAlly property does not exists on StaticItemDto for Ornn's items.

Setting Manual Rate Limit

Hiya, firstly thank you for making this library its going to help me a lot :)

So i had a question/request with regards to the rate limiting, is it possible to set a manual rate limit? sadly i'm a novice so i can't find where the check is happening myself to edit it so if i'm missing a really obvious line somewhere i apologise >.<

The reason for this is wanting to set the limit of the library to say 80% of my max so that there is still some overhead left for users to be able to still make calls where required on a website for adding new summoners to my database with the library mostly running in the background to help update data that i store

API looking fo summoner

using a summoner who DO NOT EXISTS the output is ๐Ÿ‘
$summoner = $api->getSummonerByName($summonerName);

Fatal error: Uncaught RiotAPI\Base\Exceptions\ForbiddenException: LeagueAPI: Forbidden. Data not found - summoner not found in /home/xxx.cloudwaysapps.com/fxzmmrqygx/public_html/vendor/dolejska-daniel/riot-api-base/src/Base/BaseAPI.php:1127 Stack trace:
#0 /home/140198.cloudwaysapps.com/fxzmmrqygx/public_html/vendor/dolejska-daniel/riot-api-base/src/Base/BaseAPI.php(1063): RiotAPI\Base\BaseAPI->processCallResult()
#1 /home/xxx.cloudwaysapps.com/fxzmmrqygx/public_html/vendor/guzzlehttp/promises/src/Promise.php(204): RiotAPI\Base\BaseAPI->RiotAPI\Base\{closure}()
#2 /home/xxx.cloudwaysapps.com/fxzmmrqygx/public_html/vendor/guzzlehttp/promises/src/Promise.php(153): GuzzleHttp\Promise\Promise::callHandler()
#3 /home/xxx.cloudwaysapps.com/fxzmmrqygx/public_html/vendor/guzzlehttp/promises/src/TaskQueue.php(48): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
#4 /home/xx.cloudwaysapps.com/fxzmmrqygx/public_html/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php(158): GuzzleHttp\Promise\TaskQueue in /home/140198.cloudwaysapps.com/fxzmmrqygx/public_html/vendor/dolejska-daniel/riot-api-base/src/Base/BaseAPI.php on line 1127

The answer is correct but it stop working

P.s.
Excellent work!!

Question - Update for ParticipantDto.php

Hello Daniel !

I want to know if you plan to update ParticipantDto with the new "challenges" property , because if i try to access the "challenges " property i get this error

Trying to access undefined property 'challenges' on object

and my quick fix for that was adding the following code at the end of the ParticipantDto.php , it's working for now , but i don't know if it is the proper correction.


`	/**
	 * Available when received from:
	 *   - @see LeagueAPI::getMatch
	 *
	 * @var bool $win
	 */

	public $challenges;
`

`image

Thanks !

Runes

Is there any possibility to get runesId from a participant of a match? Match->Participants[0]->stats->runes returning null.

MatchDto Objects not working

Been trying to pull up getMatch but does not return any values, gives undefined property depending on which object is used.
For example $match2 = $api->getMatch((string)'EUW1_5599108990'); and then echo $match2->participants;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.