code to fetch details from twitter