I have the following code:
$instance = new riotapi($srg_lower);
$grab_data = $instance->getSummonerByName($summoner_nm);
$decode_data = json_decode($grab_data);
$grab_id = $decode_data->{'id'};
$grab_runes = $instance->getSummoner($grab_id,'runes');
$decode_runes = json_decode($grab_runes);
$grab_names = $decode_runes->{'name'};
Note: getSummonerByName
requires a name, getSummoner
uses the ID.
EDIT: Heres an example of $decode_runes
: http://pastebin.com/6h2TX9t1
EDIT: Heres an example of $grab_runes
: http://pastebin.com/V3MNtbFA
I get values from using var_dump()
from everything but when I go to var_dump()
$grab_names
I get the return value NULL
.
I understand that this issue might be staring me in the face, but I can't see it ^^; So I am grateful to anyone who can point it out!