Using abraham/twitteroauth can`t get user e-mail with “account/verify_credentials”.
My app have updated access level and “Can request a user’s email address”. After that Consumer Key and Secret regenerated by me.
$connection = new TwitterOAuth($consumer_key, $consumer_secret,$access_token['oauth_token'],$access_token['oauth_token_secret']); $content = $connection->get("account/verify_credentials",['skip_status'=>true,'include_email'=>true]); $ansver = json_decode($content,true);
Array $ansver doesn’t have email field. It was suspected that the settings (2nd param) do not work, but “‘skip_status’=>true” has shown that everything is fine.