我正在使用soundcloud登录php脚本我无法在ic my code
下面获得电子邮件值$soundcloud = new Services_Soundcloud($clientId, $clientSecret, $callback);
try {
$accessToken = $soundcloud->accessToken($_GET['code']);
} catch (Services_Soundcloud_Invalid_Http_Response_Code_Exception $e) {
exit($e->getMessage());
}
try {
$me = json_decode($soundcloud->get('me'), true);
} catch (Services_Soundcloud_Invalid_Http_Response_Code_Exception $e) {
exit($e->getMessage());
}
$user_data = array(
'access_token' => $accessToken['access_token'],
'id' => $me['id'],
'username' => $me['username'],
'name' => $me['full_name'],
'email' => $me['email'],
'avatar' => $me['avatar_url']
);
print_r($user_data );
电子邮件的价值是空白我怎么能得到它请告诉
数组([id] => 141963337 [种类] =>用户[永久链接] => gaurav-kumar-mishra-1 [用户名] => Gaurav Kumar Mishra [last_modified] => 2015/03 / 07 02:33:49 +0000 [uri] => https://api.soundcloud.com/users/141963337 [permalink_url] => http://soundcloud.com/gaurav-kumar-mishra-1 [avatar_url] => https://i1.sndcdn.com/avatars-000134585606-t4nmub-large.jpg [country] => [first_name ] => Gaurav [last_name] => Kumar Mishra [full_name] => Gaurav Kumar Mishra [描述] => [city] => [discogs_name] => [myspace_name] => [website] = > [website_title] => [在线] => [track_count] => 0 [playlist_count] => 0 [计划] =>免费[public_favorites_count] => 0 [followers_count] => 0 [ followings_count] => 0 [subscriptions] =>数组()[upload_seconds_left] => 10800 [quota] =>数组([unlimited_upload_quota] => [upload_seconds_used] => 0 [upload_seconds_left] => 10800 )[private_tracks_count] => 0 [private_playlists_count] => 0 [primary_email_confirmed] => 1)