PHP include_email Abraham api [ SOLVED ]



I have an application that is whitelisted by Twitter for the use of including emails. My website is in php and unfortunately I can not seem to retrieve the email address of the user using @Abraham’s PHP library.

$content = $connection->get("account/verify_credentials", ["include_entities" => true, "skip_status" => true, "include_email" => true]);

I can pull all sorts of information like $content->name and it gives me the full name.

Anyone able to help?


Side note…


Doesn’t work…


Can you try changing the value from "include_email" => true to "include_email" => "true" (ie string value not boolean)


You are awesome! I didn’t think of that. It did work though so thank you so much!

closed #5