O'Reilly logo

Learning Vaadin by Nicolas Frankel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Refining Twaattin

Finally, we are ready to connect Twaattin to the Twitter API. For that, we will use Twitter4j, available at http://twitter4j.org/. Twitter4j is open source, free, and well designed so it just fits our needs. As this book is not about it, detailed information can be found on the website.

Requisites

In order to use Twitter for authentication, the first thing to do is to register a client application using the following form: https://dev.twitter.com/apps/new. This will get us a consumer key and a consumer secret that will have to be passed to Twitter4j, then to Twitter to prove who we are.

Adaptations

The biggest adaptation to our application is that since the Twitter API uses OAuth for authentication, we don't need to log in in Twaattin ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required