I had a file that scrapes twitter search results based on a user's @handle using REST API 1.0 using user_timeline.json:
$json = file_get_contents("https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&screen_name=handle&count=25", TRUE);
$twitter_feed = json_decode($json, true);
foreach($twitter_feed as $tweet) {do something with $tweet}
Since REST API v1 is no longer active, I need to replicate the process using V1.1.
I've read through the documentation and understand I now need to auth before running this script. As a beginner, this simple script just got really intimidating.
Once authenticated, what's the best method for returning an array of tweets from a certain user that will imitate the above and return in a nice json array?
Thanks