License | MIT (see the file LICENSE) |
---|---|
Maintainer | Justin Leitgeb <justin@stackbuilders.com> |
Safe Haskell | None |
Language | Haskell2010 |
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
:: 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.
:: 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.
:: String | Screen name |
-> Int | Count |
-> Bool | Exclude replies? |
-> String | The URL for requesting the user timeline |
Returns the URL for requesting a user timeline.
:: [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.