Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
module Web.Hastodon.Option
Account | |
|
data Application Source #
data Attachment Source #
Attachment | |
|
Context | |
|
Mention | |
|
data Notification Source #
Notification | |
|
data OAuthClient Source #
OAuthClient | |
|
data Relationship Source #
Relationship | |
|
Report | |
|
Results | |
|
Status | |
|
data StreamingPayload Source #
SUpdate Status | |
SNotification Notification | |
SDelete HastodonId | |
Thump |
type StreamingResponse m = forall m. MonadResource m => ConduitT () StreamingPayload m () Source #
mkHastodonClient :: String -> String -> String -> String -> String -> IO (Maybe HastodonClient) Source #
getAccountById :: HastodonClient -> Int -> IO (Either JSONException Account) Source #
getFollowers :: HastodonClient -> Int -> IO (Either JSONException [Account]) Source #
getFollowersWithOption :: HastodonClient -> RangeOption -> Int -> IO (Either JSONException [Account]) Source #
getFollowing :: HastodonClient -> Int -> IO (Either JSONException [Account]) Source #
getFollowingWithOption :: HastodonClient -> RangeOption -> Int -> IO (Either JSONException [Account]) Source #
getAccountStatuses :: HastodonClient -> Int -> IO (Either JSONException [Status]) Source #
getAccountStatusesWithOption :: HastodonClient -> GetAccountStatusesOption -> Int -> IO (Either JSONException [Status]) Source #
postFollow :: HastodonClient -> Int -> IO (Either JSONException Relationship) Source #
postUnfollow :: HastodonClient -> Int -> IO (Either JSONException Relationship) Source #
postBlock :: HastodonClient -> Int -> IO (Either JSONException Relationship) Source #
postUnblock :: HastodonClient -> Int -> IO (Either JSONException Relationship) Source #
postMute :: HastodonClient -> Int -> IO (Either JSONException Relationship) Source #
postMuteWithOption :: HastodonClient -> PostMuteOption -> Int -> IO (Either JSONException Relationship) Source #
postUnmute :: HastodonClient -> Int -> IO (Either JSONException Relationship) Source #
getRelationships :: HastodonClient -> [Int] -> IO (Either JSONException [Relationship]) Source #
getSearchedAccounts :: HastodonClient -> String -> IO (Either JSONException [Account]) Source #
getSearchedAccountsWithOption :: HastodonClient -> AccountSearchOption -> String -> IO (Either JSONException [Account]) Source #
postApps :: String -> String -> IO (Either JSONException OAuthClient) Source #
getBlocks :: HastodonClient -> IO (Either JSONException [Account]) Source #
getBlocksWithOption :: HastodonClient -> RangeOption -> IO (Either JSONException [Account]) Source #
getFavorites :: HastodonClient -> IO (Either JSONException [Status]) Source #
getFavoritesWithOption :: HastodonClient -> RangeOption -> IO (Either JSONException [Status]) Source #
getFollowRequests :: HastodonClient -> IO (Either JSONException [Account]) Source #
getFollowRequestsWithOption :: HastodonClient -> RangeOption -> IO (Either JSONException [Account]) Source #
postAuthorizeRequest :: HastodonClient -> Int -> IO Bool Source #
postRejectRequest :: HastodonClient -> Int -> IO Bool Source #
postMediaFile :: HastodonClient -> String -> String -> IO (Either JSONException Attachment) Source #
getMutes :: HastodonClient -> IO (Either JSONException [Account]) Source #
getMutesWithOption :: HastodonClient -> RangeOption -> IO (Either JSONException [Account]) Source #
getNotificationsWithOption :: HastodonClient -> GetNotificationsOption -> IO (Either JSONException [Notification]) Source #
getNotificationById :: HastodonClient -> Int -> IO (Either JSONException Notification) Source #
getReports :: HastodonClient -> IO (Either JSONException [Report]) Source #
getSearchedResults :: HastodonClient -> String -> IO (Either JSONException [Results]) Source #
getSearchedResultsWithOption :: HastodonClient -> StatusSearchOption -> String -> IO (Either JSONException [Results]) Source #
getStatus :: HastodonClient -> Int -> IO (Either JSONException Status) Source #
getCard :: HastodonClient -> Int -> IO (Either JSONException Card) Source #
getContext :: HastodonClient -> Int -> IO (Either JSONException Context) Source #
getRebloggedBy :: HastodonClient -> Int -> IO (Either JSONException [Account]) Source #
getRebloggedByWithOption :: HastodonClient -> RangeOption -> Int -> IO (Either JSONException [Account]) Source #
getFavoritedBy :: HastodonClient -> Int -> IO (Either JSONException [Account]) Source #
getFavoritedByWithOption :: HastodonClient -> RangeOption -> Int -> IO (Either JSONException [Account]) Source #
postStatus :: HastodonClient -> String -> IO (Either JSONException Status) Source #
postStatusWithOption :: HastodonClient -> PostStatusOption -> String -> IO (Either JSONException Status) Source #
postStatusWithMediaIds :: HastodonClient -> String -> [HastodonId] -> IO (Either JSONException Status) Source #
postReblog :: HastodonClient -> Int -> IO (Either JSONException Status) Source #
postUnreblog :: HastodonClient -> Int -> IO (Either JSONException Status) Source #
postFavorite :: HastodonClient -> Int -> IO (Either JSONException Status) Source #
postUnfavorite :: HastodonClient -> Int -> IO (Either JSONException Status) Source #
getHomeTimeline :: HastodonClient -> IO (Either JSONException [Status]) Source #
getHomeTimelineWithOption :: HastodonClient -> TimelineOption -> IO (Either JSONException [Status]) Source #
getPublicTimeline :: HastodonClient -> IO (Either JSONException [Status]) Source #
getPublicTimelineWithOption :: HastodonClient -> TimelineOption -> IO (Either JSONException [Status]) Source #
getTaggedTimeline :: HastodonClient -> String -> IO (Either JSONException [Status]) Source #
getTaggedTimelineWithOption :: HastodonClient -> TimelineOption -> String -> IO (Either JSONException [Status]) Source #
streamUser :: HastodonClient -> StreamingResponse m Source #
streamHashtag :: HastodonClient -> String -> StreamingResponse m Source #
streamList :: HastodonClient -> String -> StreamingResponse m Source #