| License | MIT (see the file LICENSE) |
|---|---|
| Maintainer | Justin Leitgeb <justin@stackbuilders.com> |
| Safe Haskell | None |
| Language | Haskell2010 |
Web.Twitter.Feed
Description
Functions for fetching (and linkifying) timelines of Twitter users.
- timeline :: OAuth -> Credential -> Int -> Bool -> String -> IO (Either String [SimpleTweet])
- addLink :: Link -> String -> String
- timelineUrl :: String -> Int -> Bool -> String
- sortLinks :: [URLEntity] -> [UserEntity] -> [MediaEntity] -> [Link]
Documentation
Arguments
| :: OAuth | OAuth client (consumer) |
| -> Credential | OAuth credential |
| -> Int | Count |
| -> Bool | Exclude replies? |
| -> String | Screen name |
| -> IO (Either String [SimpleTweet]) | Either an error or the list of tweets |
Get and decode a user timeline.
Arguments
| :: Link | A link |
| -> String | The text of a tweet without the link |
| -> String | The text of the tweet with the link |
Add a link to the text of a tweet.
Arguments
| :: String | Screen name |
| -> Int | Count |
| -> Bool | Exclude replies? |
| -> String | The URL for requesting the user timeline |
Returns the URL for requesting a user timeline.
Arguments
| :: [URLEntity] | A list of URL entities |
| -> [UserEntity] | A list of user mention entities |
| -> [MediaEntity] | A list of media entities |
| -> [Link] | The sorted list of links |
Sort lists of URL, user mention, and media entities.