Crate tweet [] [src]

This crate provides an executable Command Line Iinterface TransientTweeter, 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 TransientTweet

test

Module containing benchmarks

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

favorite_tweet

Favorite a tweet by its id

follow

Follow a user given their screen name

get_credentials

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

get_profile

Return profile for a given user.

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

unfavorite_tweet

Unfavorite a tweet by its id

unfollow

Unfollow a user given their screen name

unretweet

Unrewteet a tweet by its id