PHP include_email Abraham api [ SOLVED ]

oauth
php
api

#1

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?


#2

Side note…

$content->email;

Doesn’t work…


#3

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


#4

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


#5