Safe Haskell | None |
---|---|
Language | Haskell2010 |
Module containing the functions directly dealing with twitter's API. Most functions in this module have two versions - one which takes a path to a TOML file containing api keyssecrets and tokenssecrets, the other takes api keyssecrets and tokenssecrets as an argument.
- getMarkov :: String -> Maybe Int -> FilePath -> IO [String]
- getAll :: String -> Maybe Int -> FilePath -> IO Timeline
- tweetDataMem :: Tweet -> Config -> IO Int
- tweetData :: Tweet -> FilePath -> IO Int
- getProfileMax :: String -> Int -> FilePath -> Maybe Int -> IO (Either (ParseError Char Void) Timeline)
- getProfileMaxMem :: String -> Int -> Config -> Maybe Int -> IO (Either (ParseError Char Void) Timeline)
- getProfileRaw :: String -> Int -> FilePath -> Maybe Int -> IO ByteString
- getProfileRawMem :: String -> Int -> Config -> Maybe Int -> IO ByteString
- mentions :: Int -> FilePath -> IO (Either (ParseError Char Void) Timeline)
- mentionsMem :: Int -> Config -> IO (Either (ParseError Char Void) Timeline)
- mentionsRaw :: Int -> FilePath -> IO ByteString
- mentionsRawMem :: Int -> Config -> IO ByteString
- getProfile :: String -> Int -> FilePath -> IO (Either (ParseError Char Void) Timeline)
- mute :: String -> FilePath -> IO ()
- muteMem :: String -> Config -> IO ()
- unmute :: String -> FilePath -> IO ()
- unmuteMem :: String -> Config -> IO ()
- muteUserRaw :: String -> FilePath -> IO ByteString
- muteUserRawMem :: String -> Config -> IO ByteString
- unmuteUserRaw :: String -> FilePath -> IO ByteString
- unmuteUserRawMem :: String -> Config -> IO ByteString
- getDMsRaw :: Show p => p -> FilePath -> IO ByteString
- getFavorites :: Int -> String -> FilePath -> IO (Either (ParseError Char Void) Timeline)
- getTimeline :: Int -> FilePath -> IO (Either (ParseError Char Void) Timeline)
- getTimelineMem :: Int -> Config -> IO (Either (ParseError Char Void) Timeline)
- getTimelineRaw :: Int -> FilePath -> IO ByteString
- getTimelineRawMem :: Int -> Config -> IO ByteString
- deleteTweet :: Integer -> FilePath -> IO ()
- deleteTweetMem :: Integer -> Config -> IO ()
- deleteTweetResponse :: Integer -> FilePath -> IO (Either (ParseError Char Void) Timeline)
- deleteTweetResponseMem :: Integer -> Config -> IO (Either (ParseError Char Void) Timeline)
- favoriteTweet :: Integer -> FilePath -> IO ()
- favoriteTweetMem :: Integer -> Config -> IO ()
- favoriteTweetList :: String -> FilePath -> IO (Either (ParseError Char Void) Timeline)
- favoriteTweetListMem :: String -> Config -> IO (Either (ParseError Char Void) Timeline)
- favoriteTweetResponse :: Integer -> FilePath -> IO (Either (ParseError Char Void) Timeline)
- unfavoriteTweet :: Integer -> FilePath -> IO ()
- unfavoriteTweetMem :: Integer -> Config -> IO ()
- unfavoriteTweetResponse :: Integer -> FilePath -> IO (Either (ParseError Char Void) Timeline)
- unfavoriteTweetResponseMem :: Integer -> Config -> IO (Either (ParseError Char Void) Timeline)
- unretweetTweet :: Integer -> FilePath -> IO ()
- unretweetTweetMem :: Integer -> Config -> IO ()
- unretweetTweetResponse :: Integer -> FilePath -> IO (Either (ParseError Char Void) Timeline)
- unretweetTweetResponseMem :: Integer -> Config -> IO (Either (ParseError Char Void) Timeline)
- unfollow :: String -> FilePath -> IO ()
- unfollowMem :: String -> Config -> IO ()
- follow :: String -> FilePath -> IO ()
- followMem :: String -> Config -> IO ()
- block :: String -> FilePath -> IO ()
- blockMem :: String -> Config -> IO ()
- unblock :: String -> FilePath -> IO ()
- unblockMem :: String -> Config -> IO ()
- retweetTweet :: Integer -> FilePath -> IO ()
- retweetTweetMem :: Integer -> Config -> IO ()
- retweetTweetResponse :: Integer -> FilePath -> IO (Either (ParseError Char Void) Timeline)
- retweetTweetResponseMem :: Integer -> Config -> IO (Either (ParseError Char Void) Timeline)
- favoriteTweetListRaw :: String -> FilePath -> IO ByteString
- favoriteTweetListRawMem :: String -> Config -> IO ByteString
- favoriteTweetRaw :: Integer -> FilePath -> IO ByteString
- favoriteTweetRawMem :: Integer -> Config -> IO ByteString
- retweetTweetRaw :: Integer -> FilePath -> IO ByteString
- retweetTweetRawMem :: Integer -> Config -> IO ByteString
- sendDMRaw :: String -> String -> FilePath -> IO ByteString
- getDMs :: Int -> FilePath -> IO ByteString
- getDMMem :: Int -> Config -> IO ByteString
- followUserRaw :: String -> FilePath -> IO ByteString
- followUserRawMem :: String -> Config -> IO ByteString
- blockUserRaw :: String -> FilePath -> IO ByteString
- blockUserRawMem :: String -> Config -> IO ByteString
- unblockUserRaw :: String -> FilePath -> IO ByteString
- unblockUserRawMem :: String -> Config -> IO ByteString
- unfollowUserRaw :: String -> FilePath -> IO ByteString
- unfollowUserRawMem :: String -> Config -> IO ByteString
- unretweetTweetRaw :: Integer -> FilePath -> IO ByteString
- unretweetTweetRawMem :: Integer -> Config -> IO ByteString
- unfavoriteTweetRaw :: Integer -> FilePath -> IO ByteString
- unfavoriteTweetRawMem :: Integer -> Config -> IO ByteString
- deleteTweetRaw :: Integer -> FilePath -> IO ByteString
- deleteTweetRawMem :: Integer -> Config -> IO ByteString
Documentation
getMarkov :: String -> Maybe Int -> FilePath -> IO [String] Source #
Get tweets (text only) for some user
tweetData :: Tweet -> FilePath -> IO Int Source #
tweet, given a Tweet
and path to credentials. Return id of posted tweet.
getProfileMax :: String -> Int -> FilePath -> Maybe Int -> IO (Either (ParseError Char Void) Timeline) Source #
Gets user profile with max_id set.
getProfileMaxMem :: String -> Int -> Config -> Maybe Int -> IO (Either (ParseError Char Void) Timeline) Source #
Gets user profile with max_id set.
getProfileRaw :: String -> Int -> FilePath -> Maybe Int -> IO ByteString Source #
Gets user profile with max_id set.
getProfileRawMem :: String -> Int -> Config -> Maybe Int -> IO ByteString Source #
Gets user profile with max_id set
mentions :: Int -> FilePath -> IO (Either (ParseError Char Void) Timeline) Source #
Get mentions and parse response as a list of tweets
mentionsMem :: Int -> Config -> IO (Either (ParseError Char Void) Timeline) Source #
Get mentions and parse response as a list of tweets
mentionsRaw :: Int -> FilePath -> IO ByteString Source #
Gets mentions
mentionsRawMem :: Int -> Config -> IO ByteString Source #
Gets mentions
getProfile :: String -> Int -> FilePath -> IO (Either (ParseError Char Void) Timeline) Source #
Get user profile given screen name and how many tweets to return
muteUserRaw :: String -> FilePath -> IO ByteString Source #
Mute a user given their screen name
muteUserRawMem :: String -> Config -> IO ByteString Source #
Mute a user given their screen name
unmuteUserRaw :: String -> FilePath -> IO ByteString Source #
Unmute a user given their screen name
unmuteUserRawMem :: String -> Config -> IO ByteString Source #
Unmute a user given their screen name
getFavorites :: Int -> String -> FilePath -> IO (Either (ParseError Char Void) Timeline) Source #
Get a user's favorites
getTimeline :: Int -> FilePath -> IO (Either (ParseError Char Void) Timeline) Source #
Get a timeline
getTimelineMem :: Int -> Config -> IO (Either (ParseError Char Void) Timeline) Source #
Get a timeline
getTimelineRaw :: Int -> FilePath -> IO ByteString Source #
Get a user's timeline and return response as a bytestring
getTimelineRawMem :: Int -> Config -> IO ByteString Source #
Get a user's timeline and return response as a bytestring
deleteTweetResponse :: Integer -> FilePath -> IO (Either (ParseError Char Void) Timeline) Source #
Get response, i.e. the tweet deleted
deleteTweetResponseMem :: Integer -> Config -> IO (Either (ParseError Char Void) Timeline) Source #
Get response, i.e. the tweet deleted
favoriteTweetList :: String -> FilePath -> IO (Either (ParseError Char Void) Timeline) Source #
Favorite a tweet and returned the (parsed) response
favoriteTweetListMem :: String -> Config -> IO (Either (ParseError Char Void) Timeline) Source #
Favorite a tweet and returned the (parsed) response
favoriteTweetResponse :: Integer -> FilePath -> IO (Either (ParseError Char Void) Timeline) Source #
Favorite a tweet and returned the (parsed) response
unfavoriteTweetResponse :: Integer -> FilePath -> IO (Either (ParseError Char Void) Timeline) Source #
Unfavorite a tweet and returned the (parsed) response
unfavoriteTweetResponseMem :: Integer -> Config -> IO (Either (ParseError Char Void) Timeline) Source #
Unfavorite a tweet and returned the (parsed) response
unretweetTweetResponse :: Integer -> FilePath -> IO (Either (ParseError Char Void) Timeline) Source #
Unretweet a tweet and returned the (parsed) response
unretweetTweetResponseMem :: Integer -> Config -> IO (Either (ParseError Char Void) Timeline) Source #
Unretweet a tweet and returned the (parsed) response
retweetTweetResponse :: Integer -> FilePath -> IO (Either (ParseError Char Void) Timeline) Source #
Retweet a tweet and returned the (parsed) response
retweetTweetResponseMem :: Integer -> Config -> IO (Either (ParseError Char Void) Timeline) Source #
Retweet a tweet and returned the (parsed) response
favoriteTweetListRaw :: String -> FilePath -> IO ByteString Source #
Get a lisr of favorited tweets by screen name; return bytestring response
favoriteTweetListRawMem :: String -> Config -> IO ByteString Source #
Get a lisr of favorited tweets by screen name; return bytestring response
favoriteTweetRaw :: Integer -> FilePath -> IO ByteString Source #
Favorite a tweet given its id; return bytestring response
favoriteTweetRawMem :: Integer -> Config -> IO ByteString Source #
Favorite a tweet given its idNum; return bytestring response
retweetTweetRaw :: Integer -> FilePath -> IO ByteString Source #
Retweet a tweet given its idNum; return bytestring response
retweetTweetRawMem :: Integer -> Config -> IO ByteString Source #
Retweet a tweet given its idNum; return bytestring response
sendDMRaw :: String -> String -> FilePath -> IO ByteString Source #
Send a DM given text, screen name of recipient.
followUserRaw :: String -> FilePath -> IO ByteString Source #
Follow a user given their screen name
followUserRawMem :: String -> Config -> IO ByteString Source #
Follow a user given their screen name
blockUserRaw :: String -> FilePath -> IO ByteString Source #
Block a user given their screen name
blockUserRawMem :: String -> Config -> IO ByteString Source #
Block a user given their screen name
unblockUserRaw :: String -> FilePath -> IO ByteString Source #
Unblock a user given their screen name
unblockUserRawMem :: String -> Config -> IO ByteString Source #
Unblock a user given their screen name
unfollowUserRaw :: String -> FilePath -> IO ByteString Source #
Follow a user given their screen name
unfollowUserRawMem :: String -> Config -> IO ByteString Source #
Follow a user given their screen name
unretweetTweetRaw :: Integer -> FilePath -> IO ByteString Source #
Unretweet a tweet given its id; return bytestring response
unretweetTweetRawMem :: Integer -> Config -> IO ByteString Source #
Unretweet a tweet given its idNum; return bytestring response
unfavoriteTweetRaw :: Integer -> FilePath -> IO ByteString Source #
Unfavorite a tweet given its idNum; return bytestring response
unfavoriteTweetRawMem :: Integer -> Config -> IO ByteString Source #
Unfavorite a tweet given its idNum; return bytestring response
deleteTweetRaw :: Integer -> FilePath -> IO ByteString Source #
Delete a tweet given its idNum; return bytestring response
deleteTweetRawMem :: Integer -> Config -> IO ByteString Source #
Delete a tweet given its idNum; return bytestring response