Hastodon-0.0.1: mastodon client module for Haskell

Safe HaskellNone
LanguageHaskell2010

Web.Hastodon

Documentation

mkHastodonClient :: String -> String -> HastodonClient Source #

getAccountById :: Int -> HastodonClient -> IO (Either JSONException Account) Source #

getCurrentAccount :: HastodonClient -> IO (Either JSONException Account) Source #

getFollowers :: Int -> HastodonClient -> IO (Either JSONException [Account]) Source #

getFollowing :: Int -> HastodonClient -> IO (Either JSONException [Account]) Source #

getAccountStatuses :: Int -> HastodonClient -> IO (Either JSONException [Status]) Source #

postFollow :: Int -> HastodonClient -> IO (Either JSONException Relationship) Source #

postUnfollow :: Int -> HastodonClient -> IO (Either JSONException Relationship) Source #

postBlock :: Int -> HastodonClient -> IO (Either JSONException Relationship) Source #

postUnblock :: Int -> HastodonClient -> IO (Either JSONException Relationship) Source #

postMute :: Int -> HastodonClient -> IO (Either JSONException Relationship) Source #

postUnmute :: Int -> HastodonClient -> IO (Either JSONException Relationship) Source #

getRelationships :: [Int] -> HastodonClient -> IO (Either JSONException [Relationship]) Source #

getSearchedAccounts :: String -> HastodonClient -> IO (Either JSONException [Account]) Source #

postApps :: String -> HastodonClient -> IO (Either JSONException OAuthClient) Source #

getBlocks :: HastodonClient -> IO (Either JSONException [Account]) Source #

getFavorites :: HastodonClient -> IO (Either JSONException [Status]) Source #

getFollowRequests :: HastodonClient -> IO (Either JSONException [Account]) Source #

postAuthorizeRequest :: Int -> HastodonClient -> IO Bool Source #

postRejectRequest :: Int -> HastodonClient -> IO Bool Source #

getInstance :: HastodonClient -> IO (Either JSONException Instance) Source #

getMutes :: HastodonClient -> IO (Either JSONException [Account]) Source #

getNotifications :: HastodonClient -> IO (Either JSONException [Notification]) Source #

getNotificationById :: Int -> HastodonClient -> IO (Either JSONException Notification) Source #

postNotificationsClear :: HastodonClient -> IO Bool Source #

getReports :: HastodonClient -> IO (Either JSONException [Report]) Source #

getSearchedResults :: String -> HastodonClient -> IO (Either JSONException [Results]) Source #

getStatus :: Int -> HastodonClient -> IO (Either JSONException Status) Source #

getCard :: Int -> HastodonClient -> IO (Either JSONException Card) Source #

getContext :: Int -> HastodonClient -> IO (Either JSONException Context) Source #

getRebloggedBy :: Int -> HastodonClient -> IO (Either JSONException [Account]) Source #

getFavoritedBy :: Int -> HastodonClient -> IO (Either JSONException [Account]) Source #

postStatus :: String -> HastodonClient -> IO (Either JSONException Status) Source #

postReblog :: Int -> HastodonClient -> IO (Either JSONException Status) Source #

postUnreblog :: Int -> HastodonClient -> IO (Either JSONException Status) Source #

postFavorite :: Int -> HastodonClient -> IO (Either JSONException Status) Source #

postUnfavorite :: Int -> HastodonClient -> IO (Either JSONException Status) Source #

getHomeTimeline :: HastodonClient -> IO (Either JSONException [Status]) Source #

getPublicTimeline :: HastodonClient -> IO (Either JSONException [Status]) Source #

getTaggedTimeline :: String -> HastodonClient -> IO (Either JSONException [Status]) Source #