A lesson in APIs using Twitter