I've made a request to the instagram API for a list of the users followers. The expected return is this..
{
"data": [{
"username": "kevin",
"profile_picture": "http://images.ak.instagram.com/profiles/profile_3_75sq_1325536697.jpg",
"full_name": "Kevin Systrom",
"id": "3"
},
{
"username": "instagram",
"profile_picture": "http://images.ak.instagram.com/profiles/profile_25025320_75sq_1340929272.jpg",
"full_name": "Instagram",
"id": "25025320"
}]
I've tried using this but it isn't working!!
foreach ($followerList['data'] as $follower) {
echo $follower['full_name'], '<br>';
}
I can't see where I'm going wrong for the life of me, any ideas? Thank you
EDIT: $followerList is already decoded, I'm just struggling to access the array because of the "data" thingy in the expected output. I'm not sure how to access the array through the "data" thingy to then access the elements!