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

Handling tweets

For brevity, this section will only cover sending, deleting, unfavoriting/favoriting, and retweeting messages. Please refer to the documentation of the twitter4j library for more informaton. The documentation pages for the Status, TweetsResources, and FavoritesResources classes are located at http://twitter4j.org/oldjavadocs/3.0.3/twitter4j/Status.html, http://twitter4j.org/oldjavadocs/3.0.3/twitter4j/api/TweetsResources.html, and http://twitter4j.org/oldjavadocs/3.0.3/twitter4j/api/FavoritesResources.html.

Adding the tdsl.tweet namespace

The Tweet handling capabilities should go in their own namespace, so you'll need to create a new file at tdsl/src/tdsl/tweet.clj. The namespace of this file should use the *twitter* variable from ...

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