Updated NYT API example and Twitter API example (with required libraries)