Expand description
This crate provides an executable tw-rs, 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