cs1520: lab 9 ============= Twitter REST API ---------------- In this lab we will explore Twitter's REST API: https://dev.twitter.com/docs/api/ examples: --------- * The following shows a search for tweets containing "java." results per page (rpp) = 5. type of tweets = both popular and recent (mixed). The result format is "rss": http://search.twitter.com/search.rss?q=java&rpp=5&result_type=mixed * Lookup a user by screen_name or user_id. In this example, we are requesting that the return type be JSON. https://api.twitter.com/1/users/lookup.json?screen_name=DalaiLama exercises: ---------- 1 Get Barack Obama's 2 most recent tweets in xml format. His screenname is "BarackObama" (). 2. Get the followers of some user (GET followers/ids). posting updates: ---------------- 3. To post a tweet, you will have to create a twitter account. Next, create a twitter application: https://dev.twitter.com/apps/new and be sure to give your application read and write permissions. After that, navigate to the documentation for POST statuses/update. Set the message text using the "status" variable. Use the Oauth tool (on the sidebar) to generate a "curl" command. You can then execute the provided curl command on unix. Verify that the tweet went through.