0 down vote favorite
I’m using Google Api to get a list of youtube channels the users subscribed to using this file [url]https://github.com/google/google-api-php-client/blob/master/examples/user-example.php
[url]http://mawk3y.net/google/test.php?code=code
$code = $_REQUEST[‘code’];
Now I want to use the access token to get a list of youtube channel ids the user had subscribed to using this code
$data =file_get_contents(‘
&maxResults=50&access_token=’.$code.’&mine=true&key=My API Key Here’);
echo $data;
But i get nothing at all. Is this a wrong way to fetch data or something else?