Twitter API Java Tutorial - Spring Social Twitter Example
In this Twitter API Tutorial, I show you how to easily integrate with the Twitter API using Spring Social Twitter & Spring Boot auto-configuration.
00:00 – 00:40 Twitter API Tutorial Introduction.
00:40 – 02:00 Create a Spring Boot application with Spring Social Twitter & Web maven dependencies. Created project using new spring starter project, spring STS initializr.
02:00 – 03:45 Analyse Spring Boot & Spring Social Twitter auto-configuration. How Spring Boot will automatically create a TwitterTemplate with request scope.
03:45 – 05:15 Navigate to dev.twitter.com and create a new app. Read and agree to twitter terms and conditions.
05:15 – 05:55 Obtain Twitter Consumer Key (API Key) and Consumer Secret (API Secret). The secret should be encrypted at REST and not be in plaintext properties files! Store key and secret in your application’s properties files, this will let spring boot know it needs to configure a twittertemplate.
05:55 – 06:20 Analyse TwitterTemplate invoking Spring’s OAuth2Template with the consumer key and consumer secret.
06:20 – 09:35 Create RESTful service that will act as an API gateway / Proxy to Twitter API service calls. Use TwitterTemplate searchOperations to retrieve the latest 20 tweets with the specified hashtag.
09:35 – 10:30 Run application and search for #manutd on twitter. Return results in HTTP response from our RESTful web service.
10:30 – 11:30 Use TwitterTemplate timelineOperations getUserTimeline to search for a twitter timeline.
10:30 – 11:48 Summary of tutorial.
Don't forget to subscribe for regular tech & software videos!
Enjoy,
Philip
Spring Social Twitter: http://projects.spring.io/spring-social-twitter/
Spring Social: http://projects.spring.io/spring-social/
Twitter: https://twitter.com/
Twitter Dev: https://dev.twitter.com/
Twitter REST APIs: https://dev.twitter.com/rest/public
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Twitter API Java Tutorial - Spring Social Twitter Example», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.