Crate tweet [] [src]

This crate provides an executable Command Line Iinterface Tweeter, as well as several functions to return tweets and to tweet.

$ tw send "tweeting from the command line :)"

If you get stuck:

tw --help

Modules

api

urls for the twitter api

parse

This module contains the parser to turn a byte slice into a Tweet

types

This module contains the types for use by the tweet library. It implements Display, so you can print it out easily.

Functions

delete_tweet

Delete a tweet by its id

get_credentials

Reads credentials from a string, i.e. gets them from a file.

print_profile

Display profile for a given user. Takes screen name and number of tweets to return as parameters. Boolean argument is whether to print out user ids.

print_timeline

Display timeline. Takes number of tweets to return as a parameter. Second argument is whether to display the id of the tweets.

profile_raw

Display the raw JSON of a response, useful for debugging.

reply

Reply to a tweet

retweet

Rewteet a tweet by its id

tweet

Send a tweet