I am trying to implement implement a coherent, extendable object oriented solution in PHP. I am not sure where to start to solve this problem. (Not home work)
The Problem • I need to use a basic command line program that when called will retrieve and store a list of the most recent tweets of a given screen name. • The screen name should be passed in on the command line. Eg. o $ php gettweets.php @itccompliance • The program should access tweets for the screen name given by using the Twitter API. o I need to use the following API URL: https://api.twitter.com/1/statuses/user_timeline.json?screen_name= • Tweets should be stored in a text file, named according to the screen name passed in. • There is no need to store any history of tweets, only the most recent returned by the API. • I need to consider that all parts of this program will need to be modified easily in the future. In particular tweets are likely to be stored in a database instead of a text file.
Thanks in advance