O'Reilly logo

Clojure for Domain-specific Languages by Kelker Ryan

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

Adding user-related features

For brevity, this section will only cover how to retrieve some of the publicly available information of a Twitter user. Please refer to the documentation of the twitter4j library for more information. The documentation pages for the Status, User, and UsersResources classes are located at http://twitter4j.org/oldjavadocs/3.0.3/twitter4j/Status.html, http://twitter4j.org/oldjavadocs/3.0.3/twitter4j/User.html, and twitter4j.org/oldjavadocs/3.0.3/twitter4j/api/UsersResources.html.

Adding the tdsl.user namespace

You'll need to create a new file at tdsl/src/tdsl/user.clj. The namespace of this file should use the *twitter* variable from the tdsl.core namespace. The namespace also needs to import the Status class from the twitter4j ...

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