Safe Haskell | None |
---|---|
Language | Haskell2010 |
Web.Hastodon
Documentation
module Web.Hastodon.Option
data StreamingPayload Source #
Constructors
SUpdate Status | |
SNotification Notification | |
SDelete StatusId | |
Thump |
Instances
type StreamingResponse m = forall m. MonadResource m => ConduitT () StreamingPayload m () Source #
streamUser :: HastodonClient -> StreamingResponse m Source #
streamHashtag :: HastodonClient -> String -> StreamingResponse m Source #
streamList :: HastodonClient -> String -> StreamingResponse m Source #
Constructors
Account | |
Fields
|
Constructors
AccountId | |
Fields |
Constructors
Card | |
Constructors
Context | |
Fields
|
Constructors
Instance | |
Fields |
Constructors
Mention | |
Fields
|
Constructors
Report | |
Fields |
Constructors
ReportId | |
Fields
|
Constructors
Results | |
Fields
|
Constructors
Status | |
Fields
|
Constructors
StatusId | |
Fields
|
type OptionVal = Either [ByteString] (Maybe ByteString) Source #
type OptionImpl = Map ByteString OptionVal Source #
data HastodonClient Source #
Constructors
HastodonClient | |
mkHastodonClient :: String -> String -> String -> String -> String -> IO (Maybe HastodonClient) Source #
getAccountById :: HastodonClient -> AccountId -> IO (Either JSONException Account) Source #
getFollowers :: HastodonClient -> AccountId -> IO (Either JSONException [Account]) Source #
getFollowersWithOption :: HastodonClient -> RangeOption -> AccountId -> IO (Either JSONException [Account]) Source #
getFollowing :: HastodonClient -> AccountId -> IO (Either JSONException [Account]) Source #
getFollowingWithOption :: HastodonClient -> RangeOption -> AccountId -> IO (Either JSONException [Account]) Source #
getAccountStatuses :: HastodonClient -> AccountId -> IO (Either JSONException [Status]) Source #
getAccountStatusesWithOption :: HastodonClient -> GetAccountStatusesOption -> AccountId -> IO (Either JSONException [Status]) Source #
postFollow :: HastodonClient -> AccountId -> IO (Either JSONException Relationship) Source #
postUnfollow :: HastodonClient -> AccountId -> IO (Either JSONException Relationship) Source #
postBlock :: HastodonClient -> AccountId -> IO (Either JSONException Relationship) Source #
postUnblock :: HastodonClient -> AccountId -> IO (Either JSONException Relationship) Source #
postMute :: HastodonClient -> AccountId -> IO (Either JSONException Relationship) Source #
postMuteWithOption :: HastodonClient -> PostMuteOption -> AccountId -> IO (Either JSONException Relationship) Source #
postUnmute :: HastodonClient -> AccountId -> IO (Either JSONException Relationship) Source #
getRelationships :: HastodonClient -> [AccountId] -> 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 -> AccountId -> IO Bool Source #
postRejectRequest :: HastodonClient -> AccountId -> 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 -> NotificationId -> 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 -> StatusId -> IO (Either JSONException Status) Source #
getCard :: HastodonClient -> StatusId -> IO (Either JSONException Card) Source #
getContext :: HastodonClient -> StatusId -> IO (Either JSONException Context) Source #
getRebloggedBy :: HastodonClient -> StatusId -> IO (Either JSONException [Account]) Source #
getRebloggedByWithOption :: HastodonClient -> RangeOption -> StatusId -> IO (Either JSONException [Account]) Source #
getFavoritedBy :: HastodonClient -> StatusId -> IO (Either JSONException [Account]) Source #
getFavoritedByWithOption :: HastodonClient -> RangeOption -> StatusId -> 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 -> [MediaId] -> IO (Either JSONException Status) Source #
postReblog :: HastodonClient -> StatusId -> IO (Either JSONException Status) Source #
postUnreblog :: HastodonClient -> StatusId -> IO (Either JSONException Status) Source #
postFavorite :: HastodonClient -> StatusId -> IO (Either JSONException Status) Source #
postUnfavorite :: HastodonClient -> StatusId -> 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 #