paquettg / leaguewrap

League of Legend API wrapper
MIT License
67 stars 28 forks source link

Game id #44

Closed lagseeing closed 10 years ago

lagseeing commented 10 years ago

I am trying to the the gameid of the most recent match with something like this

$all = $game->recent($summoner)[0]['info']->gameId;

But i am having no luck, and the documentation is somewhat vague in this aspect.

paquettg commented 10 years ago

What errors does it bring up when you attempt to do this?

Best wishes, ~ Gilles Paquette

On Sat, Nov 22, 2014 at 12:49 PM, Antonio Requena notifications@github.com wrote:

I am trying to the the gameid of the most recent match with something like this

$all = $game->recent($summoner)[0]['info']->gameId;

But i am having no luck, and the documentation is somewhat vague in this aspect.

— Reply to this email directly or view it on GitHub https://github.com/paquettg/leaguewrap/issues/44.

lagseeing commented 10 years ago

it just says null.

dnlbauer commented 10 years ago

I think it must be $game->recent($summoner)[0]->gameId; without ['info']. You can check that with a var_dump